Exit with error 125 if the process is killed by a signal

This commit is contained in:
sin 2014-01-06 18:03:34 +00:00
parent 2dc105ebbc
commit ef57a609ca

View File

@ -241,4 +241,6 @@ runcmd(void)
WEXITSTATUS(status) == 126)
exit(WEXITSTATUS(status));
}
if (WIFSIGNALED(status))
exit(125);
}