summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-05-23 19:31:59 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-05-23 19:31:59 (GMT)
commita9e7c22c38a58f2248f2bd51529411914cd16e06 (patch)
tree7c81647cd6c83cb8b6a4fa65351908dc53c7c33b /unix
parent94314d340912c11bcd33a9631f14e3f1d20607ff (diff)
parentedb38932e8f071b1326515067d41bc060807dec2 (diff)
downloadtcl-a9e7c22c38a58f2248f2bd51529411914cd16e06.zip
tcl-a9e7c22c38a58f2248f2bd51529411914cd16e06.tar.gz
tcl-a9e7c22c38a58f2248f2bd51529411914cd16e06.tar.bz2
merge 8.7
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixThrd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c
index 90c1c1c..128602a 100644
--- a/unix/tclUnixThrd.c
+++ b/unix/tclUnixThrd.c
@@ -158,7 +158,6 @@ Tcl_JoinThread(
#endif
}
-#if TCL_THREADS
/*
*----------------------------------------------------------------------
*
@@ -179,9 +178,12 @@ void
TclpThreadExit(
int status)
{
+#if TCL_THREADS
pthread_exit(INT2PTR(status));
-}
+#else /* TCL_THREADS */
+ exit(status);
#endif /* TCL_THREADS */
+}
/*
*----------------------------------------------------------------------