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: <5.1.0.14.2.20010518110716.01b581e8@pop3.cris.com> X-Sender: rrschulz AT pop3 DOT cris DOT com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 18 May 2001 11:23:30 -0700 To: cygwin AT cygwin DOT com, cygwin AT cygwin DOT com From: Randall R Schulz Subject: Re: [CYGWIN] Re: SIGTERM does not stop backend postgres processes immediately In-Reply-To: <20010513231432.A5059@redhat.com> References: <3AFF4B61 DOT 39A0B754 AT tpf DOT co DOT jp> <20010509094031 DOT A87424 AT enteract DOT com> <20010509142629 DOT J355 AT dothill DOT com> <20010509164926 DOT C3169 AT redhat DOT com> <3AFF4B61 DOT 39A0B754 AT tpf DOT co DOT jp> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Hi, Here's a snippet from the Linux section 2 manual page: ... int select(int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)); ... timeout is an upper bound on the amount of time elapsed before select returns. It may be zero, causing select to return immediately. If timeout is NULL (no timeout), select can block indefinitely. ... Does the indefinite-timeout variant of select exist and work under Cygwin (or Windows, as the case may be) compatibly with the Linux API spec? If so, why not use this variant of select? I agree with you, Chris, that polling is very much to be avoided, but as work-arounds go, this approach might be acceptable to me. Randall Schulz Mountain View, CA USA At 20:14 2001-05-13, Christopher Faylor wrote: > >How about inserting a select() call before the recv() ? Cygwin's > >select() is interruptible AFAIK. > >That would be the "workaround" that I kept mentioning previously. It >relies on polling and that is a something I'd rather avoid, if possible. > >cgf -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple