diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-08-05 21:58:21 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-08-05 21:58:21 (GMT) |
| commit | c74640849ef38c01a98a0a1338f72bbb56668d5e (patch) | |
| tree | a5f2819e737003d38974d2a6dd95170c034a28f1 | |
| parent | 3916ce9d4c7f235a49acf158efd4f366ebfe35cf (diff) | |
| download | tcl-c74640849ef38c01a98a0a1338f72bbb56668d5e.zip tcl-c74640849ef38c01a98a0a1338f72bbb56668d5e.tar.gz tcl-c74640849ef38c01a98a0a1338f72bbb56668d5e.tar.bz2 | |
Mark unixforkevent-1.1 nonPortable, until proven on more platforms.
| -rw-r--r-- | tests/unixForkEvent.test | 2 | ||||
| -rw-r--r-- | unix/tclUnixTest.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/unixForkEvent.test b/tests/unixForkEvent.test index cbe582e..120f362 100644 --- a/tests/unixForkEvent.test +++ b/tests/unixForkEvent.test @@ -16,7 +16,7 @@ testConstraint testfork [llength [info commands testfork]] # Test if the notifier thread is well initialized in a forked interpreter # by Tcl_InitNotifier test unixforkevent-1.1 {fork and test writeable event} \ - -constraints testfork \ + -constraints {testfork nonPortable} \ -body { set myFolder [makeDirectory unixtestfork] set pid [testfork] diff --git a/unix/tclUnixTest.c b/unix/tclUnixTest.c index 2fc1647..d2b729d 100644 --- a/unix/tclUnixTest.c +++ b/unix/tclUnixTest.c @@ -574,8 +574,8 @@ TestforkObjCmd( "Cannot fork", NULL); return TCL_ERROR; } -#ifndef HAVE_PTHREAD_ATFORK - /* Only needed when pthread_atfork is not present. */ +#if !defined(HAVE_PTHREAD_ATFORK) || defined(MAC_OSX_TCL) + /* Only needed when pthread_atfork is not present or on OSX. */ if (pid==0) { Tcl_InitNotifier(); } |
