delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-Id: | <200302241846.h1OIkcN18248@head-cfa.cfa.harvard.edu> |
To: | cygwin AT cygwin DOT com, "Elfyn McBratney" <elfyn-cygwin AT exposure DOT org DOT uk> |
cc: | eric AT head-cfa DOT cfa DOT harvard DOT edu |
Subject: | Re: connect() not interrupted by sigalrm? |
In-Reply-To: | Your message of "Mon, 24 Feb 2003 18:28:33 GMT." |
<031501c2dc32$8d430390$c67486d9 AT webdev> | |
Date: | Mon, 24 Feb 2003 13:46:37 -0500 |
From: | Eric Mandel <eric AT head-cfa DOT cfa DOT harvard DOT edu> |
Dear Elfyn, Thanks for your prompt response: > Cockpit error. You left out a few headers. > - string.h is needed for memset() > - unistd.h is needed for alarm() > - arpa/inet.h is needed for inet_addr() > > After that it works fine. The addition of these include files does make gcc -Wall happier, but it not change the behavior of the program at run-time. Under Cygwin on my XP box, it still waits many seconds for the connect() to timeout and then returns with a "Connection timed out" error, instead of returning after the 2 second alarm with the desired "Interrupted system call" error. 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |