Tcl Source Code

Artifact [1a548cb4e3]
Login

Artifact 1a548cb4e3e69a6d3cd96416f269af6bfd4012b3:

Attachment "hpux.patch" to ticket [414d10346b] added by aku 2013-10-28 17:46:17.
Index: unix/tclUnixNotfy.c
==================================================================
--- unix/tclUnixNotfy.c
+++ unix/tclUnixNotfy.c
@@ -200,11 +200,11 @@
  * Static routines defined in this file.
  */
 
 #ifdef TCL_THREADS
 static void	NotifierThreadProc(ClientData clientData);
-#if defined(HAVE_PTHREAD_ATFORK) && !defined(__APPLE__)
+#if defined(HAVE_PTHREAD_ATFORK) && !defined(__APPLE__) && !defined(HPUX)
 static int	atForkInit = 0;
 static void	AtForkPrepare(void);
 static void	AtForkParent(void);
 static void	AtForkChild(void);
 #endif /* HAVE_PTHREAD_ATFORK */
@@ -280,11 +280,11 @@
     /*
      * Start the Notifier thread if necessary.
      */
 
     Tcl_MutexLock(&notifierMutex);
-#if defined(HAVE_PTHREAD_ATFORK) && !defined(__APPLE__)
+#if defined(HAVE_PTHREAD_ATFORK) && !defined(__APPLE__) && !defined(HPUX)
     /*
      * Install pthread_atfork handlers to reinitialize the notifier in the
      * child of a fork.
      */
 
@@ -1271,11 +1271,11 @@
     Tcl_MutexUnlock(&notifierMutex);
 
     TclpThreadExit (0);
 }
 
-#if defined(HAVE_PTHREAD_ATFORK) && !defined(__APPLE__)
+#if defined(HAVE_PTHREAD_ATFORK) && !defined(__APPLE__) && !defined(HPUX)
 /*
  *----------------------------------------------------------------------
  *
  * AtForkPrepare --
  *