use _exit replace exit

Signed-off-by: Gao feng <omarapazanadi@gmail.com>
This commit is contained in:
Gao feng
2016-05-18 12:30:58 +08:00
parent 3785a4d02c
commit 05c85499bc
+2 -3
View File
@@ -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: