Use _exit() instead of return if exec* fails

This commit is contained in:
sin 2014-11-13 17:06:18 +00:00
parent 2869adf458
commit 44b3ea8f76

View File

@ -46,6 +46,5 @@ main(int argc, char *argv[])
execvp(argv[0], &argv[0]); execvp(argv[0], &argv[0]);
enprintf(errno == ENOENT ? Error : Found, "exec %s:", argv[0]); enprintf(errno == ENOENT ? Error : Found, "exec %s:", argv[0]);
_exit(Error);
return Error;
} }