Merge pull request #98 from gao-feng/exit

use _exit replace exit
This commit is contained in:
Gao feng
2016-05-18 12:33:02 +08:00
+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: