[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: poll(2) emulation doesn't work well on a file descriptor
From: |
Daiki Ueno |
Subject: |
Re: poll(2) emulation doesn't work well on a file descriptor |
Date: |
Thu, 14 Sep 2006 18:54:43 +0900 |
>>>>> In <address@hidden>
>>>>> Paolo Bonzini <address@hidden> wrote:
> Bruno Haible wrote:
> > Daiki Ueno wrote:
> >
> >> When I tried a tiny program which uses gnulib's poll(2) emulation on
> >> MacOS X 10.4, I found a bug. gnulib's poll(2) uses recv(2) with
> >> MSG_PEEK to support POLLHUP. However, recv(2) is only applicable to a
> >> socket, not to a file descriptor.
> >>
> It's much worse than that. On some other kinds of descriptor, recv
> works, but ignores MSG_PEEK!
> I have a similar patch using FIONREAD instead of recv for Mac OS only,
> but the bottom line is that you cannot rely on POLLHUP for Mac OS :-(
> I'll polish the patch and send it soon.
A month passed. Any news?
Regards,
--
Daiki Ueno
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: poll(2) emulation doesn't work well on a file descriptor,
Daiki Ueno <=