Skip site navigation (1)Skip section navigation (2)
Date:      13 Jun 1999 18:00:48 +0200
From:      Dag-Erling Smorgrav <des@flood.ping.uio.no>
To:        Dag-Erling Smorgrav <des@flood.ping.uio.no>
Cc:        Brian Feldman <green@unixhelp.org>, hackers@FreeBSD.ORG
Subject:   Re: select(2) breakage
Message-ID:  <xzp674st7in.fsf@flood.ping.uio.no>
In-Reply-To: Dag-Erling Smorgrav's message of "13 Jun 1999 17:46:13 %2B0200"
References:  <Pine.BSF.4.10.9906131100140.26380-100000@janus.syracuse.net> <xzp7lp8t86y.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzp674st7in.fsf>