projects
/
asterisk/asterisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
always use fork() when available
[asterisk/asterisk.git]
/
main
/
asterisk.c
diff --git
a/main/asterisk.c
b/main/asterisk.c
index
e8bf957
..
e981a76
100644
(file)
--- 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) {