]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
sigprocmask sets errno on error
authorMark Andrews <marka@isc.org>
Thu, 27 Mar 2014 01:33:40 +0000 (12:33 +1100)
committerMark Andrews <marka@isc.org>
Thu, 27 Mar 2014 01:33:40 +0000 (12:33 +1100)
lib/isc/unix/app.c

index df903f1ba58b385a8d2eef5c18ebe4fb798e8ad4..afbc6a97364b5ba5d3e1e925633f4a0626437b7d 100644 (file)
@@ -363,7 +363,7 @@ isc__app_ctxstart(isc_appctx_t *ctx0) {
        }
        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);
                result = ISC_R_UNEXPECTED;