aboutsummaryrefslogtreecommitdiffstats
path: root/asterisk.c
diff options
context:
space:
mode:
Diffstat (limited to 'asterisk.c')
-rw-r--r--asterisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/asterisk.c b/asterisk.c
index 9cfdc565d..bc15eb5c7 100644
--- a/asterisk.c
+++ b/asterisk.c
@@ -449,7 +449,7 @@ int ast_safe_system(const char *s)
for (x = STDERR_FILENO + 1; x < 4096; x++)
close(x);
execl("/bin/sh", "/bin/sh", "-c", s, NULL);
- exit(1);
+ _exit(1);
} else if (pid > 0) {
for(;;) {
res = wait4(pid, &status, 0, &rusage);