delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/09/19:08:48

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
X-Authentication-Warning: shell-1.enteract.com: fcy set sender to fred AT ontosys DOT com using -f
Date: Wed, 9 May 2001 18:08:19 -0500
From: Fred Yankowski <fred AT ontosys DOT com>
To: "Parker, Ron" <rdparker AT butlermfg DOT com>
Cc: cygwin AT cygwin DOT com
Subject: Re: SIGTERM does not stop backend postgres processes immediately
Message-ID: <20010509180819.A10384@enteract.com>
References: <E94FF01DFF6CD31186F4080009DC361502086B8D AT nttwr2 DOT tower DOT bldgs DOT butlermfg DOT org>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <E94FF01DFF6CD31186F4080009DC361502086B8D@nttwr2.tower.bldgs.butlermfg.org>; from rdparker@butlermfg.com on Wed, May 09, 2001 at 04:48:28PM -0500

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?  Can I call it from a signal handler function?
I tried calling close() on the socket that recv() is reading, from a
signal handler, but that doesn't seem to unblock the recv().
Actually, I get a STATUS_ACCESS_VIOLATION when I try that.

-- 
Fred Yankowski           fred AT OntoSys DOT com      tel: +1.630.879.1312
Principal Consultant     www.OntoSys.com       fax: +1.630.879.1370
OntoSys, Inc             38W242 Deerpath Rd, Batavia, IL 60510, USA

--
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