Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com Message-Id: <200302251718.h1PHI4N00913@head-cfa.cfa.harvard.edu> To: cygwin@cygwin.com Subject: Re: connect() not interrupted by sigalrm? cc: eric@head-cfa.cfa.harvard.edu References: <200302241757.h1OHvQN16044@head-cfa.cfa.harvard.edu> Date: Tue, 25 Feb 2003 12:18:04 -0500 From: Eric Mandel Dear Corinna, Thanks for the quick clarification on plans for interruptible connect(). > Btw., switching to non-blocking for the connect/select pair isn't > actually difficult so I wonder what your problem is. Cf. Stevens "Unix Network Programming", section 15.3: "There are many portability problems with nonblocking connnects that we mention in the examples that follow." and, after a lengthy discussion of portability issues: "Unfortunately, nonblocking connects are one of the most nonportable areas of network programming." Since my code must run on several flavors of Unix, I hesitate to use this technique. I suppose I could use it solely for Cygwin and retain the more portable alarm()/connect() technique for the other platforms, and that is what I am considering now. Regards, Eric -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/