Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: From: "Parker, Ron" To: cygwin AT cygwin DOT com Subject: RE: SIGTERM does not stop backend postgres processes immediately Date: Wed, 9 May 2001 16:48:28 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain > Unfortunately, blocking recv() calls are not interruptible on Windows. > I'm not aware of any mechanism for allowing this. Under windows two things will interrupt a blocking recv() call. The first is to call closesocket() from another thread. The second is WSACancelBlockingCall() which no longer exists in Winsock 2, but that is not a huge problem because cygwin is using Winsock 1.x. One note, WSACancelBlockingCall() was just a way of getting around the Winsock 1.1 rule that you couldn't call closesocket() when a blocking call was pending. So, closesocket() may have the same effect. -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple