gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r25500 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r25500 - gnunet/src/util
Date: Mon, 17 Dec 2012 11:54:42 +0100

Author: grothoff
Date: 2012-12-17 11:54:41 +0100 (Mon, 17 Dec 2012)
New Revision: 25500

Modified:
   gnunet/src/util/os_priority.c
Log:
-respect vfork semantics

Modified: gnunet/src/util/os_priority.c
===================================================================
--- gnunet/src/util/os_priority.c       2012-12-17 10:44:01 UTC (rev 25499)
+++ gnunet/src/util/os_priority.c       2012-12-17 10:54:41 UTC (rev 25500)
@@ -931,7 +931,10 @@
   if (NULL != childpipename)
   {
     setenv (GNUNET_OS_CONTROL_PIPE, childpipename, 1);
+#ifndef DARWIN
+    /* due to vfork, we must NOT free memory on DARWIN! */
     GNUNET_free (childpipename);
+#endif
   }
   if (NULL != pipe_stdin)
   {
@@ -1004,7 +1007,10 @@
     GNUNET_snprintf (fds, sizeof (fds), "%u", i);
     setenv ("LISTEN_FDS", fds, 1);
   }
+#ifndef DARWIN
+  /* due to vfork, we must NOT free memory on DARWIN! */
   GNUNET_array_grow (lscp, ls, 0);
+#endif
   execvp (filename, argv);
   LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_ERROR, "execvp", filename);
   _exit (1);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]