curl-library
Re: Mac OS X and poll()
Date: Fri, 9 Feb 2007 22:53:35 +0100 (CET)
On Fri, 9 Feb 2007, Daniel Johnson wrote:
>> http://www.greenend.org.uk/rjk/2001/06/poll.html
>
> That's an interesting page. I ran his test program and got this:
>
> Darwin mentalis.local 8.9.1 Darwin Kernel Version 8.9.1: Tue Jan 23 23:00:25
> PST 2007; root:xnu-792.18.12~1/RELEASE_I386 i386 i386
> pipe: POLLIN|POLLHUP
> socketpair: POLLIN|POLLHUP
> SHUT_WR socketpair: POLLIN|POLLHUP
> SHUT_RD socketpair: POLLIN|POLLHUP
> regular: POLLIN
As a comparsion, my Linux 2.6.18 with glibc 2.3.6 says:
pipe: POLLHUP
socketpair: POLLIN|POLLHUP
SHUT_WR socketpair: POLLIN
SHUT_RD socketpair: POLLIN
regular: POLLIN
Hm, ok so I guess we then really should make configure do the check for
poll/select on darwin like on other systems, and thus use poll() in the code.
Do you happen to have a patch for this?
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-02-09