Blaisorblade wrote:
> 1) I'll try to fix poll(2) to return -EINVAL. Dunno whether anyone will say 
> "no, the app is stupid, it deserves no error", but hope not (with "try" I 
> refer to this). Attached patch should do this.

I think the behaviour of "poll" with nfds = 0 is correct as it is.
At least POSIX doesn't say anything to the extent that "nfds"
couldn't be zero:

http://www.opengroup.org/onlinepubs/009695399/functions/poll.html

Furthermore, this is one of several ways to implement a "sleep"
function with sub-second granularity, so existing applications
may already depend on "poll" accepting nfds = 0. (Of course,
they would probably be better off using "nanosleep".)

> 2) write_sigio_thread should do a "down" on a semaphore/mutex and the first 
> update_thread should "up" it.

Yup :-)

Thanks,
- Werner

-- 
  _________________________________________________________________________
 / Werner Almesberger, Buenos Aires, Argentina         [EMAIL PROTECTED] /
/_http://www.almesberger.net/____________________________________________/


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to