summaryrefslogtreecommitdiffstats
path: root/generic/tclIORChan.c
diff options
context:
space:
mode:
authorandreas_kupries <akupries@shaw.ca>2009-10-07 17:11:40 (GMT)
committerandreas_kupries <akupries@shaw.ca>2009-10-07 17:11:40 (GMT)
commit86d7b6d7b9a8a46a9d99a3e0e6b707fe7eb0b411 (patch)
tree327335456bc78fe912775e45acc10c5ba37051c8 /generic/tclIORChan.c
parent68cca388595b1a3e1535f8e700e003bcb98bde45 (diff)
downloadtcl-86d7b6d7b9a8a46a9d99a3e0e6b707fe7eb0b411.zip
tcl-86d7b6d7b9a8a46a9d99a3e0e6b707fe7eb0b411.tar.gz
tcl-86d7b6d7b9a8a46a9d99a3e0e6b707fe7eb0b411.tar.bz2
* generic/tclIORChan.c (ErrnoReturn): Replace the hardwired
constant 11 with the proper errno define, EAGAIN. What was I thinking ? The BSD's have a different errno assignment and break with the hardwired number. Reported by emiliano on the chat.
Diffstat (limited to 'generic/tclIORChan.c')
-rw-r--r--generic/tclIORChan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclIORChan.c b/generic/tclIORChan.c
index 3d14ec6..305b3ad 100644
--- a/generic/tclIORChan.c
+++ b/generic/tclIORChan.c
@@ -15,7 +15,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclIORChan.c,v 1.28.2.7 2009/08/06 22:28:44 andreas_kupries Exp $
+ * RCS: @(#) $Id: tclIORChan.c,v 1.28.2.8 2009/10/07 17:11:40 andreas_kupries Exp $
*/
#include <tclInt.h>
@@ -2314,7 +2314,7 @@ ErrnoReturn(ReflectedChannel *rcPtr, Tcl_Obj* resObj)
if (((Tcl_GetIntFromObj(rcPtr->interp, resObj, &code) != TCL_OK) || (code >= 0))) {
if (strcmp ("EAGAIN",Tcl_GetString(resObj)) == 0) {
- code = -11;
+ code = - EAGAIN;
} else {
code = 0;
}