0
0
Fork 0
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:
MusiKid 2022-01-25 18:20:11 +01:00 committed by musikid
parent b53d48e43d
commit 11762b7654
No known key found for this signature in database
GPG key ID: 7567D43648C6E2F4

View file

@ -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);