diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-27 17:39:31 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-27 17:39:31 +0000 |
commit | 83e66fa60070ea934061f173f1db6d95e461a124 (patch) | |
tree | fc7fdf041e5accbca6bc15a56bd5aa9ce6b9a402 /apps/app_externalivr.c | |
parent | 5cf507d56d6089e6b63eb0780089e797ccff008e (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.4@46363 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_externalivr.c')
-rw-r--r-- | apps/app_externalivr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_externalivr.c b/apps/app_externalivr.c index 7929a0238..a42dd9551 100644 --- a/apps/app_externalivr.c +++ b/apps/app_externalivr.c @@ -322,7 +322,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]; |