summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixTest.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-10-29 13:25:18 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-10-29 13:25:18 (GMT)
commit09152d341c9af2f2b775aab778c9c676ccc74f7d (patch)
tree8f89fccc4f616faa93d4053c151d6eb67a21859e /unix/tclUnixTest.c
parentd5553abfbd403b39bbf49437bdee021defd88b77 (diff)
parent89c02b35e1dda98920322d5f292a1aa15433bfef (diff)
downloadtcl-09152d341c9af2f2b775aab778c9c676ccc74f7d.zip
tcl-09152d341c9af2f2b775aab778c9c676ccc74f7d.tar.gz
tcl-09152d341c9af2f2b775aab778c9c676ccc74f7d.tar.bz2
merge trunk
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 68ec8d3..31a0719 100644
--- a/unix/tclUnixTest.c
+++ b/unix/tclUnixTest.c
@@ -572,12 +572,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;
}