From 83e66fa60070ea934061f173f1db6d95e461a124 Mon Sep 17 00:00:00 2001 From: russell Date: Fri, 27 Oct 2006 17:39:31 +0000 Subject: 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 --- res/res_musiconhold.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'res/res_musiconhold.c') diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index a4debac8f..d6832009d 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -461,7 +461,7 @@ static int spawn_mp3(struct mohclass *class) } ast_log(LOG_WARNING, "Exec failed: %s\n", strerror(errno)); close(fds[1]); - exit(1); + _exit(1); } else { /* Parent */ close(fds[1]); -- cgit v1.2.3