bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in select()?


From: Roland McGrath
Subject: Re: Bug in select()?
Date: Sun, 10 Dec 2000 04:35:24 -0500 (EST)

Hmm.  Please file a bug report against libc in the Debian BTS about this,
so that we retain a record of the problem that we won't overlook later.

Can we get a test program that doesn't require anything unusual to be
installed or running?  I suspect that this problem might well arise in any
case where a polling select (or poll) call is done.  So just a simple
program that does select on stdin might show the problem (e.g. the program
does sleep(5), then a polling select on stdin, and during the pause you
type a line).

I think this may well be a basic problem with how we do select.  You might
try hacking the select code in libc (libc/hurd/hurdselect.c) so that it
uses a minimal (1ms) timeout for the RPC replies instead of truly polling.
That might give the minimal time required for the "immediate" RPC replies
to come back.  Actually just tweaking your test program would have the
exact same effect: just find the minimum timeout value that works.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]