diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-12-17 09:55:34 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-12-17 09:55:34 +0000 |
commit | ba0afe12a3ee16fb0c3291289337959b3f170477 (patch) | |
tree | 10dc50c5038de0ce92ee2e7f06355b5dac3373f3 /src | |
parent | da1263bbfff505f8cdb7dccd03b0ac68aa195c58 (diff) | |
download | gnunet-ba0afe12a3ee16fb0c3291289337959b3f170477.tar.gz gnunet-ba0afe12a3ee16fb0c3291289337959b3f170477.zip |
-vfork is back
Diffstat (limited to 'src')
-rw-r--r-- | src/util/os_priority.c | 5 |
1 files changed, 5 insertions, 0 deletions
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, | |||
904 | GNUNET_array_append (lscp, ls, k); | 904 | GNUNET_array_append (lscp, ls, k); |
905 | GNUNET_array_append (lscp, ls, -1); | 905 | GNUNET_array_append (lscp, ls, -1); |
906 | } | 906 | } |
907 | #if DARWIN | ||
908 | /* see https://gnunet.org/vfork */ | ||
909 | ret = vfork (); | ||
910 | #else | ||
907 | ret = fork (); | 911 | ret = fork (); |
912 | #endif | ||
908 | if (-1 == ret) | 913 | if (-1 == ret) |
909 | { | 914 | { |
910 | int eno = errno; | 915 | int eno = errno; |