diff options
author | andreas_kupries <andreas_kupries@noemail.net> | 2009-10-07 17:07:05 (GMT) |
---|---|---|
committer | andreas_kupries <andreas_kupries@noemail.net> | 2009-10-07 17:07:05 (GMT) |
commit | 33d6be65841367f1e00b22d65be1cf2c08f37b81 (patch) | |
tree | 14e82cac5c06aae874ab28883777f9fe3659d9aa /generic/tclIORChan.c | |
parent | 15352c5ba86eb19cc5f1f7d2a42b3f96c0dc9b0d (diff) | |
download | tcl-33d6be65841367f1e00b22d65be1cf2c08f37b81.zip tcl-33d6be65841367f1e00b22d65be1cf2c08f37b81.tar.gz tcl-33d6be65841367f1e00b22d65be1cf2c08f37b81.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.
FossilOrigin-Name: 5e5eae4bd8c87d7e68fc7c44666091506c1cf1cf
Diffstat (limited to 'generic/tclIORChan.c')
-rw-r--r-- | generic/tclIORChan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclIORChan.c b/generic/tclIORChan.c index 5a83eca..15e41d8 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.40 2009/08/06 22:28:11 andreas_kupries Exp $ + * RCS: @(#) $Id: tclIORChan.c,v 1.41 2009/10/07 17:07:07 andreas_kupries Exp $ */ #include <tclInt.h> @@ -2318,7 +2318,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; } |