Bug 1709 - dce_select don't clear fds when returning 0
dce_select don't clear fds when returning 0
Product: dce
Classification: Unclassified
Component: other
PC Linux
: P5 normal
Assigned To: Hajime Tazaki
Depends on:
  Show dependency treegraph
Reported: 2013-06-18 19:00 EDT by Matías Richart
Modified: 2014-01-09 18:46 EST (History)
2 users (show)

See Also:

Patch and test (1.04 KB, application/x-gzip)
2013-06-18 19:00 EDT, Matías Richart

Note You need to log in before you can comment on or make changes to this bug.
Description Matías Richart 2013-06-18 19:00:48 EDT
Created attachment 1617 [details]
Patch and test

In dce 1.0.
When select returns 0 (for example when the timeout is reached but no fd is available) it don't return the fds empty. 
I didn't find the correct behaviour documented but on linux (tested on Ubuntu 12.04) the select clear the fds when 0 is returned.

I attach a possible patch and the corresponding test.
Comment 1 Hajime Tazaki 2013-06-18 20:58:19 EDT
thanks for the patch and test !
will get you back soon.
Comment 2 Hajime Tazaki 2013-06-19 22:28:15 EDT
fixed.  many thanks !

changeset 488	bb4e17e70dc8