summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include/termio.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2016-01-09 14:53:06 +0100
committerCorinna Vinschen <corinna@vinschen.de>2016-01-09 14:53:06 +0100
commit3069a93fbebce17159bf964a148c1b07221293ba (patch)
treeda2b3ab16752aa4e188ec833afc4eee913fe349d /winsup/cygwin/include/termio.h
parente0d4e3fec7793c1bf41ca707156af8413fb03455 (diff)
downloadcygnal-3069a93fbebce17159bf964a148c1b07221293ba.tar.gz
cygnal-3069a93fbebce17159bf964a148c1b07221293ba.tar.bz2
cygnal-3069a93fbebce17159bf964a148c1b07221293ba.zip
select: Don't timeout without setting descriptor arrays to all zero
* select.cc (copyfd_set): Remove. (select): Don't copy local wait fd arrays over to returned fd arrays since bits set there are not accounted for in return value. Zero out returned fd arrays instead. Always call sel.poll even in case of a timeout. Always zero out fd array when timing out. Convert while/do to do/while for clarity. Use dedicated variable as return value to decouple return value from artificial return code from sel.wait. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/include/termio.h')
0 files changed, 0 insertions, 0 deletions