[lkml]   [2004]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: select implementation not POSIX compliant?
Nick wrote:

>Furthermore, a call to close and then select in the same thread
>blocks while the other thread is still in select, which has a very large
>surprise factor, since the code would work were it not for the other
Could you post the test case for this behavior: I assume your test app
is buggy: a select call that is executed after close returned must
return EBADF, everything else would be a bug.

Regarding your main point: The return result from select/poll is
undefined in Linux if you close a descriptor while another thread polls
or selects it.
This is consistent with the behavior of other Unices - for example HP UX
kills the process if you replace a descriptor that is being polled with

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 14:05    [W:0.049 / U:4.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site