From ba0afe12a3ee16fb0c3291289337959b3f170477 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 17 Dec 2012 09:55:34 +0000 Subject: [PATCH] -vfork is back --- src/util/os_priority.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/util/os_priority.c b/src/util/os_priority.c index 69766ff84..c773c2399 100644 --- a/src/util/os_priority.c +++ b/src/util/os_priority.c @@ -904,7 +904,12 @@ start_process (int pipe_control, GNUNET_array_append (lscp, ls, k); GNUNET_array_append (lscp, ls, -1); } +#if DARWIN + /* see https://gnunet.org/vfork */ + ret = vfork (); +#else ret = fork (); +#endif if (-1 == ret) { int eno = errno; -- 2.25.1