Bug 1709

Summary: dce_select don't clear fds when returning 0
Product: dce Reporter: Matías Richart <mrichart>
Component: otherAssignee: Hajime Tazaki <tazaki>
Status: CLOSED FIXED    
Severity: normal CC: ns-bugs, tazaki
Priority: P5    
Version: unspecified   
Hardware: PC   
OS: Linux   
Attachments: Patch and test

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