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 Date: Tue, 15 May 2001 11:20:54 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: SIGTERM does not stop backend postgres processes immediately Message-ID: <20010515112054.G31266@cygbert.vinschen.de> Mail-Followup-To: cygwin AT cygwin DOT com References: <20010510112639 DOT A26981 AT enteract DOT com> <20010510123102 DOT B15024 AT redhat DOT com> <20010510123628 DOT A48047 AT enteract DOT com> <20010510140721 DOT F12136 AT redhat DOT com> <00c101c0d9a6$44a44a30$0200a8c0 AT lifelesswks> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <00c101c0d9a6$44a44a30$0200a8c0@lifelesswks>; from robert.collins@itdomain.com.au on Fri, May 11, 2001 at 09:09:28AM +1000 On Fri, May 11, 2001 at 09:09:28AM +1000, Robert Collins wrote: > Blueskying a concept here: what about cygwin opening all sockets in > non-blocking mode, and if the app thinks that it is a blocking call wait > on the socket && on a signal event? > > Obviously not trivial to get working right, but > a) would it work on 95? > b) thoughts? b) I have just applied a patch to Cygwin which uses overlapped IO together with the Winsock2 calls WSARecv, WSARecvFrom, WSASend and WSASendTo if available. The new mechanism is interruptable by signals. If Winsock2 is not available the new implementation just falls back to using the non-inerruptable Winsock1 calls. I would like to ask people to test it especially in conjunction with PostgreSQL, which I haven't set up. Note that this patch does not change the behaviour of direct NT service processes (inetd, cygrunsrv) to be not interruptable by signals! a) Win95 will participate if the users have updated their system to OSR2 or installed a newer IE or "Winsock2 for 95" from the Microsoft web pages. OTOH, if we only implement things which are available in older OS versions, too, we would never be able to provide some new features of newer OSes to the Cygwin users. As the bottom line, adding functionality sometimes means: "Sorry, only available since 98 (W2K, XP)..." Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple