Re: select(2) breakage

[ Available lists | Index of freebsd-hackers | Month of Jun 1999 | Week of 13 Jun 1999 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Dag-Erling Smorgrav <des@flood.ping.uio.no>
Date
13 Jun 1999 09:00:52
Subject
Re: select(2) breakage
Message-ID
xzp674st7in.fsf@flood.ping.uio.no


[ Hide this part ]
Dag-Erling Smorgrav <des@flood.ping.uio.no> writes:
> This still doesn't explain select()'s failure to time out

Found it! If you change:
printf("no select() action");
to:
fprintf(stderr, "no select() action\n");

you'll see that select() does time out.

The moral of this story is to always use an unbuffered stream for
logging and debugging messages.

DES
--
Dag-Erling Smorgrav - des@flood.ping.uio.no


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Elapsed time: 0.112 seconds