commit | 69cb1f830e4fd2282ddcbc7ee2bbe30069b9e4cd | [log] [download] |
---|---|---|
author | Nicholas Marriott <nicm@openbsd.org> | Sat Jan 08 01:52:36 2011 +0000 |
committer | Nicholas Marriott <nicm@openbsd.org> | Sat Jan 08 01:52:36 2011 +0000 |
tree | 49efff28238bbba524974db0512859a310d0b09c | |
parent | 703160b5d6b64e45a684894260693c60b5524d51 [diff] |
Move all calls to fcntl(...O_NONBLOCK) into a function and clear the flag on the stdio file descriptors before closing them (fixes things like "tmux ls && cat").