summaryrefslogtreecommitdiffstats
path: root/generic/tclProc.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2002-12-11 21:29:52 (GMT)
committerdgp <dgp@users.sourceforge.net>2002-12-11 21:29:52 (GMT)
commit7c29f89d1b5523989d28042e893c40042981a83c (patch)
treef1df1b1af2f72af74a1be0b28fb037d64f34e97f /generic/tclProc.c
parent0ebb8899a331886beaa24f4ff1ab19b68fd590d9 (diff)
downloadtcl-7c29f89d1b5523989d28042e893c40042981a83c.zip
tcl-7c29f89d1b5523989d28042e893c40042981a83c.tar.gz
tcl-7c29f89d1b5523989d28042e893c40042981a83c.tar.bz2
* generic/tclProc.c (ProcessProcResultCode): Fix failure to
propagate negative return codes up the call stack. [Bug 647307] * tests/proc.test (proc-6.1): Test for Bug 647307
Diffstat (limited to 'generic/tclProc.c')
-rw-r--r--generic/tclProc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclProc.c b/generic/tclProc.c
index 5b4108c..4e3d4b8 100644
--- a/generic/tclProc.c
+++ b/generic/tclProc.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclProc.c,v 1.43 2002/10/02 01:36:29 hobbs Exp $
+ * RCS: @(#) $Id: tclProc.c,v 1.44 2002/12/11 21:29:52 dgp Exp $
*/
#include "tclInt.h"
@@ -1297,7 +1297,7 @@ ProcessProcResultCode(interp, procName, nameLen, returnCode)
if (returnCode == TCL_OK) {
return TCL_OK;
}
- if (returnCode > TCL_CONTINUE) {
+ if ((returnCode > TCL_CONTINUE) || (returnCode < TCL_OK)) {
return returnCode;
}
if (returnCode == TCL_RETURN) {