Don't warn about getting killed by SIGPIPE
SIGPIPE is business as usual when pipes are involved and require no special warnings (that's why we're handling it after all), but getting killed by other means seems still worth logging.
This commit is contained in:
parent
9e3256d2e8
commit
8f7f85f2fb
|
@ -28,7 +28,8 @@ static void rpmsqTerm(int signum, siginfo_t *info, void *context)
|
|||
rpmlog(RPMLOG_DEBUG,
|
||||
"exiting on signal %d (killed by death, eh?)\n", signum);
|
||||
} else {
|
||||
rpmlog(RPMLOG_WARNING,
|
||||
int lvl = (signum == SIGPIPE) ? RPMLOG_DEBUG : RPMLOG_WARNING;
|
||||
rpmlog(lvl,
|
||||
_("exiting on signal %d from pid %d\n"), signum, info->si_pid);
|
||||
}
|
||||
exit(EXIT_FAILURE);
|
||||
|
|
Loading…
Reference in New Issue