aboutsummaryrefslogtreecommitdiff
path: root/win32/select.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mingw: import select from gnulibRon Yorston2015-04-221-0/+573
There are two changes from gnulib: Treat a broken pipe as readable. If nc doesn't try to read from the pipe it'll never find out it's broken. Only allow console key press events to indicate that stdin is readable. read_key leaves a key release event in the buffer at the end of a shell command. This caused nc to block, thinking that the console had input available.