From ec6d7a3ad901cf5447353bdee159c99336ac9c2d Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 18 Nov 2017 18:53:52 -0500 Subject: process forking and spawning: call _exit, not exit, in the child process. --- src/helper/slbt_dump_machine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/helper/slbt_dump_machine.c') diff --git a/src/helper/slbt_dump_machine.c b/src/helper/slbt_dump_machine.c index 4c2f6b5..fe453e6 100644 --- a/src/helper/slbt_dump_machine.c +++ b/src/helper/slbt_dump_machine.c @@ -37,12 +37,12 @@ static void slbt_dump_machine_child( close(1); if ((fd[0] = open("/dev/null",O_RDONLY))) - exit(EXIT_FAILURE); + _exit(EXIT_FAILURE); if (dup(fd[1]) == 1) execvp(program,argv); - exit(EXIT_FAILURE); + _exit(EXIT_FAILURE); } int slbt_dump_machine( -- cgit v1.2.3