Re: recvfrom and timeout signal

2002-02-22 Thread Corinna Vinschen
On Thu, Feb 21, 2002 at 05:43:17PM +0100, Piotr Stepien wrote: > > Would you mind to run your test application which you've send > > to Chris on one of your 98/Me machines under strace and send > > the strace output to this list? > > Here it is. Thanks. It seems as if CancelIo() doesn't work w

RE: recvfrom and timeout signal

2002-02-21 Thread Piotr Stepien
> Would you mind to run your test application which you've send > to Chris on one of your 98/Me machines under strace and send > the strace output to this list? Here it is. Piotr Stepien strace.zip Description: Zip compressed data -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-

Re: recvfrom and timeout signal

2002-02-21 Thread Corinna Vinschen
On Thu, Feb 21, 2002 at 12:24:54PM +0100, Piotr Stepien wrote: > > Does it fail on *all* versions of 9x/Me? I'm testing on XP currently. > > However, it's probably important to know that it *will* always fail > > on all flavours of 95 since 95 doesn't support the CancelIO() call > > which is used

RE: recvfrom and timeout signal

2002-02-21 Thread Piotr Stepien
> Does it fail on *all* versions of 9x/Me? I'm testing on XP currently. > However, it's probably important to know that it *will* always fail > on all flavours of 95 since 95 doesn't support the CancelIO() call > which is used to perform signal handling in blocking socket read/write > calls. In

Re: recvfrom and timeout signal

2002-02-20 Thread Corinna Vinschen
On Wed, Feb 20, 2002 at 04:48:42PM +0100, Piotr Stepien wrote: > I use tho most recent 1.3.9. You are probably using another > version of Windows. I did several tests and discovered different > action depending on Windows version: > > Win 95/98/ME - fails (signal never received) Does it fail o

RE: recvfrom and timeout signal

2002-02-20 Thread Piotr Stepien
Windows ? Piotr Stepien, ASP > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Corinna >Vinschen > Sent: Wednesday, February 20, 2002 2:46 PM > To: [EMAIL PROTECTED] > Subject: Re: recvfrom and timeout signal > > > On Tue,

Re: recvfrom and timeout signal

2002-02-20 Thread Corinna Vinschen
On Tue, Feb 19, 2002 at 10:28:02PM +0100, Piotr St?pie? wrote: > Hi All, > > I try to implement timeout for recvfrom: > > struct sigaction action; > action.sa_handler = alarm_signal; > action.sa_flags = 0; > sigemptyset(&(action.sa_mask)); /* ignore all known sig

Re: recvfrom and timeout signal

2002-02-19 Thread Christopher Faylor
the Reply-To and Mail-Followup-To to go to the cygwin mailing list. "Someone" does not necessarily mean me. cgf >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of >Christopher Faylor >Sent: Tuesday, February 19, 2002 10:42 PM >To: [EMAI

Re: recvfrom and timeout signal

2002-02-19 Thread Christopher Faylor
On Tue, Feb 19, 2002 at 10:28:02PM +0100, Piotr St?pie? wrote: >Hi All, > >I try to implement timeout for recvfrom: > > struct sigaction action; > action.sa_handler = alarm_signal; > action.sa_flags = 0; > sigemptyset(&(action.sa_mask)); /* ignore all known signals

recvfrom and timeout signal

2002-02-19 Thread Piotr Stępień
Hi All, I try to implement timeout for recvfrom: struct sigaction action; action.sa_handler = alarm_signal; action.sa_flags = 0; sigemptyset(&(action.sa_mask)); /* ignore all known signals */ sigaction(SIGALRM,&action,NULL);/* ensures that