]> asedeno.scripts.mit.edu Git - PuTTY.git/commit - unix/uxplink.c
When writing session data to stdout or stderr, switch the relevant file
authorBen Harris <bjh21@bjh21.me.uk>
Sun, 30 Sep 2007 12:45:49 +0000 (12:45 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Sun, 30 Sep 2007 12:45:49 +0000 (12:45 +0000)
commitc5996bcde5d83bb7cd7a80bcb8b7479faf1655e0
tree28be0428ff84bf7a089fd5d4aa539a0d093f3183
parent17bc691cc277be4c5a89c1c7ec7bbe57add4ab95
When writing session data to stdout or stderr, switch the relevant file
descriptor into non-blocking mode temporarily, and correctly handle returns
of EAGAIN from write().  This should fix unix-plink-stdout-nonblock, while
avoiding EAGAIN turning up where we aren't expecting it.

[originally from svn r7748]
unix/uxplink.c