summary |
log |
commit |
diff |
tree
raw |
patch |
inline | side by side (from parent 1:
43a395a)
exit(3) is not async-signal-safe but, _exit(2) is.
This change prevents st to crash and dump core.
die("child exited with status %d\n", WEXITSTATUS(stat));
else if (WIFSIGNALED(stat))
die("child terminated due to signal %d\n", WTERMSIG(stat));
die("child exited with status %d\n", WEXITSTATUS(stat));
else if (WIFSIGNALED(stat))
die("child terminated due to signal %d\n", WTERMSIG(stat));