]> git.tuebingen.mpg.de Git - paraslash.git/commit
mark all fds used for select() as non-blocking
authorAndre <maan@p133.(none)>
Tue, 13 Jun 2006 09:41:28 +0000 (11:41 +0200)
committerAndre <maan@p133.(none)>
Tue, 13 Jun 2006 09:41:28 +0000 (11:41 +0200)
commit6969c9fa8293a44daf7ba5a0426573fcd71c1953
tree203dcbee465097b9c363cee6beb97cd4a4527d59
parent639a90049f74b4ce528376afe8ec8e84edf16208
mark all fds used for select() as non-blocking

This shouldn't matter much, but there _are_ (rare) situations where
an fd is marked ready for reading, but a subsequent read will block
nevertheless. It's never wrong to use non-blocking fds, so just do it.

This patch also includes a check in para_fd_set() which spots blocking
fds as they are added to the fd sets. This check is commented out
for performance reasons but can easily be activated.
audiod.c
dccp.c
dccp_recv.c
fd.c
http_recv.c
stdin.c
stdout.c