[asterisk-commits] markster: branch markster/usersconf r42670 -
/team/markster/usersconf/main/
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sun Sep 10 20:03:49 MST 2006
Author: markster
Date: Sun Sep 10 22:03:48 2006
New Revision: 42670
URL: http://svn.digium.com/view/asterisk?rev=42670&view=rev
Log:
vfork works as well as fork does, actually
Modified:
team/markster/usersconf/main/asterisk.c
Modified: team/markster/usersconf/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/team/markster/usersconf/main/asterisk.c?rev=42670&r1=42669&r2=42670&view=diff
==============================================================================
--- team/markster/usersconf/main/asterisk.c (original)
+++ team/markster/usersconf/main/asterisk.c Sun Sep 10 22:03:48 2006
@@ -649,10 +649,14 @@
struct rusage rusage;
int status;
-#if HAVE_WORKING_FORK
- ast_replace_sigchld();
-
+#if defined(HAVE_WORKING_FORK) || defined(HAVE_WORKING_VFORK)
+ ast_replace_sigchld();
+
+#ifdef HAVE_WORKING_VFORK
+ pid = vfork();
+#else
pid = fork();
+#endif
if (pid == 0) {
if (ast_opt_high_priority)
More information about the asterisk-commits
mailing list