aboutsummaryrefslogtreecommitdiff
path: root/src/include/platform.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-10-19 09:35:56 +0000
committerChristian Grothoff <christian@grothoff.org>2009-10-19 09:35:56 +0000
commit9a2a597e65ef4ee81df909d4c56377f51087001e (patch)
treee9f66e9fe0bd988cf5c458c3bef17d2652d29e3f /src/include/platform.h
parenteda86f7f7fc37d08f265f5f1d3584dfa7229cfb6 (diff)
downloadgnunet-9a2a597e65ef4ee81df909d4c56377f51087001e.tar.gz
gnunet-9a2a597e65ef4ee81df909d4c56377f51087001e.zip
use vfork if available, otherwise sleep after fork to avoid racing on signalling the process vs execvp changing the signal handlers; clone without signal-handlers would also do, but is even less portable
Diffstat (limited to 'src/include/platform.h')
-rw-r--r--src/include/platform.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/platform.h b/src/include/platform.h
index 257fc7c6b..3393807f5 100644
--- a/src/include/platform.h
+++ b/src/include/platform.h
@@ -151,6 +151,10 @@
151#include <errno.h> 151#include <errno.h>
152#include <limits.h> 152#include <limits.h>
153 153
154#if HAVE_VFORK_H
155#include <vfork.h>
156#endif
157
154#if HAVE_CTYPE_H 158#if HAVE_CTYPE_H
155#include <ctype.h> 159#include <ctype.h>
156#endif 160#endif