On Tue, 10 Mar 2009, Michael Abbott wrote:
On Tue, 10 Mar 2009, Abbott, MG (Michael) wrote:
stdin, ... is a device and therefore doesn't work with darwin's
poll. In this case poll just spews POLLNVAL
Ok, so poll() on Darwin is busted.
Looks like I'll have to code up an emulation of poll() using select() and
Juan,
Can you try the attached patch and let me know how things behave.
This is a quick and dirty hack, if it's ok I'll work up a proper release.
The problem with using select is that its error handling is lousy: if any
file handle is invalid I have to back out and individually call select()
on each handle, one by one, to find the offending ones.