diff options
author | patthoyts <patthoyts@noemail.net> | 2005-11-04 23:01:38 (GMT) |
---|---|---|
committer | patthoyts <patthoyts@noemail.net> | 2005-11-04 23:01:38 (GMT) |
commit | c35a26c82e3134b2f524b89abfb3f7e2c58ba4f5 (patch) | |
tree | ad307b6f7f7d668f3002bfa09ea7896295955457 /generic/tclPipe.c | |
parent | 5f19cc5582416636860ba618987cf45bc742e2b5 (diff) | |
download | tcl-c35a26c82e3134b2f524b89abfb3f7e2c58ba4f5.zip tcl-c35a26c82e3134b2f524b89abfb3f7e2c58ba4f5.tar.gz tcl-c35a26c82e3134b2f524b89abfb3f7e2c58ba4f5.tar.bz2 |
* win/tclWinPort.h: Applied patch #1267871 by Matt Newman for
* win/tclWinPipe.c: extended error code support on Windows.
* tests/exec.test: Tests for extended error codes.
* generic/tclPipe.c: Permit long codes (platform macros permitting).
FossilOrigin-Name: e69a0476efd6b58dbd9cbb23631ea18f13fc114d
Diffstat (limited to 'generic/tclPipe.c')
-rw-r--r-- | generic/tclPipe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclPipe.c b/generic/tclPipe.c index 0afc584..16dad41 100644 --- a/generic/tclPipe.c +++ b/generic/tclPipe.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclPipe.c,v 1.14 2005/11/02 14:51:05 dkf Exp $ + * RCS: @(#) $Id: tclPipe.c,v 1.15 2005/11/04 23:01:40 patthoyts Exp $ */ #include "tclInt.h" @@ -317,7 +317,7 @@ TclCleanupChildren( sprintf(msg1, "%lu", resolvedPid); if (WIFEXITED(waitStatus)) { if (interp != (Tcl_Interp *) NULL) { - sprintf(msg2, "%hu", WEXITSTATUS(waitStatus)); + sprintf(msg2, "%lu", WEXITSTATUS(waitStatus)); Tcl_SetErrorCode(interp, "CHILDSTATUS", msg1, msg2, NULL); } abnormalExit = 1; |