sigprocmask sets errno on error

(cherry picked from commit 1fa64087e7)
This commit is contained in:
Mark Andrews
2014-03-27 12:34:31 +11:00
parent 7bd332809b
commit 5d61c53ef9
+1 -1
View File
@@ -379,7 +379,7 @@ isc__app_start(void) {
}
presult = sigprocmask(SIG_UNBLOCK, &sset, NULL);
if (presult != 0) {
isc__strerror(presult, strbuf, sizeof(strbuf));
isc__strerror(errno, strbuf, sizeof(strbuf));
UNEXPECTED_ERROR(__FILE__, __LINE__,
"isc_app_start() sigprocmask: %s", strbuf);
return (ISC_R_UNEXPECTED);