diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-18 19:58:27 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-18 19:58:27 +0000 |
commit | c72149025b53c82b7060e2f27d9f83eb811b429c (patch) | |
tree | 869aba17a9682b1f8dc422264eb54c83daf837b8 /main/asterisk.c | |
parent | 094036c9968685a49e5a3e25e5398d8be6e1b536 (diff) |
always use fork() when available
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43216 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/asterisk.c')
-rw-r--r-- | main/asterisk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/asterisk.c b/main/asterisk.c index e8bf9575b..e981a7677 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -698,10 +698,10 @@ int ast_safe_system(const char *s) #if defined(HAVE_WORKING_FORK) || defined(HAVE_WORKING_VFORK) ast_replace_sigchld(); -#ifdef HAVE_WORKING_VFORK - pid = vfork(); -#else +#ifdef HAVE_WORKING_FORK pid = fork(); +#else + pid = vfork(); #endif if (pid == 0) { |