Commit 801bc148 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Demote SIGCHLD error to a warning

parent bc3e5294
...@@ -130,16 +130,16 @@ static void *SigThread (void *data) ...@@ -130,16 +130,16 @@ static void *SigThread (void *data)
sigaction (signum, NULL, &act); sigaction (signum, NULL, &act);
if ((act.sa_flags & SA_SIGINFO) || (act.sa_handler != SIG_DFL)) if ((act.sa_flags & SA_SIGINFO) || (act.sa_handler != SIG_DFL))
{ {
msg_Err (obj, "signal %d overridden (%p)", signum, msg_Warn (obj, "signal %d overridden (%p)", signum,
act.sa_handler); act.sa_handler);
#ifdef __GLIBC__ #ifdef __GLIBC__
Dl_info info; Dl_info info;
if (dladdr (act.sa_handler, &info)) if (dladdr (act.sa_handler, &info))
msg_Err (obj, " %s(%s)[%p]", msg_Warn (obj, " %s(%s)[%p]",
info.dli_fname ? info.dli_fname : "?", info.dli_fname ? info.dli_fname : "?",
info.dli_sname ? info.dli_sname : "?", info.dli_sname ? info.dli_sname : "?",
info.dli_saddr); info.dli_saddr);
#endif #endif
if (!(act.sa_flags & SA_SIGINFO) && (act.sa_handler != SIG_IGN)) if (!(act.sa_flags & SA_SIGINFO) && (act.sa_handler != SIG_IGN))
act.sa_handler (signum); act.sa_handler (signum);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment