summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixTest.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-10-29 08:15:36 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-10-29 08:15:36 (GMT)
commit71bc6d6f0a3521ab154d247c7cfe368918b0475b (patch)
tree54539f7c4d754c72776d5bc2f0ce2c455aafe623 /unix/tclUnixTest.c
parentc4047c81e6c9fbc560c7c5c498f1a011f8ecde79 (diff)
downloadtcl-71bc6d6f0a3521ab154d247c7cfe368918b0475b.zip
tcl-71bc6d6f0a3521ab154d247c7cfe368918b0475b.tar.gz
tcl-71bc6d6f0a3521ab154d247c7cfe368918b0475b.tar.bz2
Workaround for [414d10346b]: tcl 8.5.15/8.6.1(threaded build) hangs in exec on HP-UX
Diffstat (limited to 'unix/tclUnixTest.c')
-rw-r--r--unix/tclUnixTest.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/unix/tclUnixTest.c b/unix/tclUnixTest.c
index bb16f3b..0747c2d 100644
--- a/unix/tclUnixTest.c
+++ b/unix/tclUnixTest.c
@@ -574,12 +574,11 @@ TestforkObjCmd(
"Cannot fork", NULL);
return TCL_ERROR;
}
-#if !defined(HAVE_PTHREAD_ATFORK)
- /* Only needed when pthread_atfork is not present. */
+ /* Only needed when pthread_atfork is not present,
+ * should not hurt otherwise. */
if (pid==0) {
Tcl_InitNotifier();
}
-#endif
Tcl_SetObjResult(interp, Tcl_NewIntObj(pid));
return TCL_OK;
}