[asterisk-commits] kpfleming: trunk r43216 - /trunk/main/asterisk.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Sep 18 12:58:28 MST 2006
Author: kpfleming
Date: Mon Sep 18 14:58:27 2006
New Revision: 43216
URL: http://svn.digium.com/view/asterisk?rev=43216&view=rev
Log:
always use fork() when available
Modified:
trunk/main/asterisk.c
Modified: trunk/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/trunk/main/asterisk.c?rev=43216&r1=43215&r2=43216&view=diff
==============================================================================
--- trunk/main/asterisk.c (original)
+++ trunk/main/asterisk.c Mon Sep 18 14:58:27 2006
@@ -698,10 +698,10 @@
#if defined(HAVE_WORKING_FORK) || defined(HAVE_WORKING_VFORK)
ast_replace_sigchld();
-#ifdef HAVE_WORKING_VFORK
+#ifdef HAVE_WORKING_FORK
+ pid = fork();
+#else
pid = vfork();
-#else
- pid = fork();
#endif
if (pid == 0) {
More information about the asterisk-commits
mailing list