aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-27 17:36:07 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-27 17:36:07 +0000
commit8cae630bdc7f5d0a9919c7f1c0291ef75cb6a6cc (patch)
tree5db183ccdd3857cda5e7d8161153b0d09e6d3d1d /apps
parent7c6569f513344bcdc27de007b73fefbb62bc6cf1 (diff)
We should always be using _exit() after a fork() or vfork() instead of exit().
This is because exit() does some extra cleanup which in some implementations of vfork(), for example, can actually modify the state of the parent process, causing very weird bugs or crashes. (issue #7971, Nick Gavrikov) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@46361 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_externalivr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_externalivr.c b/apps/app_externalivr.c
index 5d27f9b3c..fc5f34082 100644
--- a/apps/app_externalivr.c
+++ b/apps/app_externalivr.c
@@ -324,7 +324,7 @@ static int app_exec(struct ast_channel *chan, void *data)
close(i);
execv(argv[0], argv);
fprintf(stderr, "Failed to execute '%s': %s\n", argv[0], strerror(errno));
- exit(1);
+ _exit(1);
} else {
/* parent process */
int child_events_fd = child_stdin[1];