delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/10/00:03:10

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Wed, 9 May 2001 23:52:57 -0400
From: Jason Tishler <Jason DOT Tishler AT dothill DOT com>
To: Fred Yankowski <fred AT ontosys DOT com>
Cc: cygwin AT cygwin DOT com
Subject: Re: SIGTERM does not stop backend postgres processes immediately
Message-ID: <20010509235257.C1928@dothill.com>
Mail-Followup-To: Fred Yankowski <fred AT ontosys DOT com>, cygwin AT cygwin DOT com
References: <E94FF01DFF6CD31186F4080009DC361502086B8D AT nttwr2 DOT tower DOT bldgs DOT butlermfg DOT org> <20010509180819 DOT A10384 AT enteract DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010509180819.A10384@enteract.com>; from fred@ontosys.com on Wed, May 09, 2001 at 06:08:19PM -0500
Organization: Dot Hill Systems Corp.

Fred,

On Wed, May 09, 2001 at 06:08:19PM -0500, Fred Yankowski wrote:
> On Wed, May 09, 2001 at 04:48:28PM -0500, Parker, Ron wrote:
> > Under windows two things will interrupt a blocking recv() call.  The first
> > is to call closesocket() from another thread.
> 
> Cygwin doesn't seem to export a wrapper for closesocket().  How can I
> access that function?

Try direct access by including winsock.h and linking with libwsock32.a.

> Can I call it from a signal handler function?

I don't see why not, but will you know what sockets need to be closed
in the context of a signal handler?

Jason

-- 
Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corp.               Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason DOT Tishler AT dothill DOT com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019