From 112d28fc3f4af8849035b9d786ca0a1e4978987b Mon Sep 17 00:00:00 2001 From: andreas_kupries Date: Wed, 7 Oct 2009 17:07:05 +0000 Subject: * 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. --- ChangeLog | 7 +++++++ generic/tclIORChan.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e035f7f..0902daa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-10-07 Andreas Kupries + + * 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. + 2009-10-06 Don Porter * generic/tclInterp.c (SlaveEval): Agressive stomping of internal reps 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 @@ -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; } -- cgit v0.12