mirror of
https://github.com/boltgolt/howdy.git
synced 2024-09-19 09:51:19 +02:00
fix: use correct macro for signal number
This commit is contained in:
parent
b53d48e43d
commit
11762b7654
1 changed files with 2 additions and 2 deletions
|
@ -89,9 +89,9 @@ auto howdy_error(int status,
|
||||||
std::string(S("Unknown error: ") + status).c_str());
|
std::string(S("Unknown error: ") + status).c_str());
|
||||||
syslog(LOG_ERR, "Failure, unknown error %d", status);
|
syslog(LOG_ERR, "Failure, unknown error %d", status);
|
||||||
}
|
}
|
||||||
} else {
|
} else if (WIFSIGNALED(status)) {
|
||||||
// We get the signal
|
// We get the signal
|
||||||
status = WIFSIGNALED(status);
|
status = WTERMSIG(status);
|
||||||
|
|
||||||
syslog(LOG_ERR, "Child killed by signal %s (%d)", strsignal(status),
|
syslog(LOG_ERR, "Child killed by signal %s (%d)", strsignal(status),
|
||||||
status);
|
status);
|
||||||
|
|
Loading…
Reference in a new issue