summaryrefslogtreecommitdiffstats
path: root/win/tclWinPipe.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-16 20:33:17 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-16 20:33:17 (GMT)
commit4638909b08044425c05cc87efd7713ad9c6be4de (patch)
treee8618a22a59ff6f8b295c875e2ebf57b54ab39ce /win/tclWinPipe.c
parent1cc85db9fe34f20eb5109b58d4d5bd0d65140129 (diff)
downloadtcl-4638909b08044425c05cc87efd7713ad9c6be4de.zip
tcl-4638909b08044425c05cc87efd7713ad9c6be4de.tar.gz
tcl-4638909b08044425c05cc87efd7713ad9c6be4de.tar.bz2
Map WSAEWOULDBLOCK to EWOULDBLOCK. Suggested by Reinhard Max.
Diffstat (limited to 'win/tclWinPipe.c')
-rw-r--r--win/tclWinPipe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c
index 13caba9..77fc776 100644
--- a/win/tclWinPipe.c
+++ b/win/tclWinPipe.c
@@ -1884,7 +1884,7 @@ PipeClose2Proc(
SetEvent(pipePtr->stopWriter);
if (WaitForSingleObject(pipePtr->writable, 0) == WAIT_TIMEOUT) {
- return EAGAIN;
+ return EWOULDBLOCK;
}
} else {
@@ -2161,7 +2161,7 @@ PipeOutputProc(
* the channel is in non-blocking mode.
*/
- errno = EAGAIN;
+ errno = EWOULDBLOCK;
goto error;
}
@@ -2712,7 +2712,7 @@ WaitForRead(
* is in non-blocking mode.
*/
- errno = EAGAIN;
+ errno = EWOULDBLOCK;
return -1;
}