mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
Have sh print out which signal terminated a child process.
This commit is contained in:
parent
a685809e75
commit
cddd2f37e9
Notes:
sideshowbarker
2024-07-19 18:35:22 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/cddd2f37e95
|
@ -148,7 +148,11 @@ static int runcmd(char* cmd)
|
|||
if (WIFEXITED(wstatus)) {
|
||||
//printf("Exited normally with status %d\n", WEXITSTATUS(wstatus));
|
||||
} else {
|
||||
printf("Exited abnormally\n");
|
||||
if (WIFSIGNALED(wstatus)) {
|
||||
printf("Terminated by signal %d\n", WTERMSIG(wstatus));
|
||||
} else {
|
||||
printf("Exited abnormally\n");
|
||||
}
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue