From 05c85499bc998366295ad25b78a0741211367897 Mon Sep 17 00:00:00 2001 From: Gao feng Date: Wed, 18 May 2016 12:30:58 +0800 Subject: [PATCH] use _exit replace exit Signed-off-by: Gao feng --- src/exec.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/exec.c b/src/exec.c index 2c0f121..d1ec58e 100644 --- a/src/exec.c +++ b/src/exec.c @@ -596,10 +596,9 @@ static int hyper_do_exec_cmd(void *data) /* the exit codes follow the `chroot` standard, see docker/docs/reference/run.md#exit-status */ if (errno == ENOENT) - exit(127); + _exit(127); else if (errno == EACCES) - exit(126); - + _exit(126); } exit: