[vlc-devel] [PATCH 1/4] os2: thread: set POLLNVAL instead of returning -1 if not a socket

Rémi Denis-Courmont remi at remlab.net
Tue Sep 15 19:37:59 CEST 2015


Le 2015-09-15 18:17, KO Myung-Hun a écrit :
> Rémi Denis-Courmont wrote:
>> Le 2015-09-13 10:54, KO Myung-Hun a écrit :
>>> KO Myung-Hun wrote:
>>>> From: KO Myung-Hun <komh78 at gmail.com>
>>>>
>>>> ---
>>>>  src/os2/thread.c | 32 +++++++++++++++++++++++++-------
>>>>  1 file changed, 25 insertions(+), 7 deletions(-)
>>>>
>>>
>>> Updated.
>>
>> FWIW, I think the patch gives incorrect results if there are more 
>> than
>> one non-socket or bad file descriptors in the set. Bad file 
>> descriptors
>> should never happen, but regular files and pipes definitely do.
>>
>
> Fixed.

It looks to me that this gives incorrect results on poll(whatever, 0, 
timeout);


-- 
Rémi Denis-Courmont
http://www.remlab.net/


More information about the vlc-devel mailing list