#endif
st = WTERMSIG(status);
if (sigonly) {
- if(st == SIGPIPE) {
- col = fmtstr(s, 16, "Broken pipe");
- goto out;
- }
- if (st == SIGINT)
+ if (st == SIGINT || st == SIGPIPE)
goto out;
#if JOBS
if (WIFSTOPPED(status))
#endif
}
st &= 0x7f;
- col = fmtstr(s, 32, u_signal_names(NULL, &st, 0));
+ col = fmtstr(s, 32, strsignal(st));
if (WCOREDUMP(status)) {
col += fmtstr(s + col, 16, " (core dumped)");
}