From: Todd C. Miller Date: Mon, 1 Sep 2014 02:32:18 +0000 (-0600) Subject: Convert a debug printf to a user-visible warning. X-Git-Tag: SUDO_1_8_11^2~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0546f0b6a271a225200aceda7600606666ca4fde;p=sudo Convert a debug printf to a user-visible warning. --- diff --git a/src/exec.c b/src/exec.c index 8f8e389aa..a73950ab1 100644 --- a/src/exec.c +++ b/src/exec.c @@ -236,7 +236,7 @@ backchannel_cb(int fd, int what, void *v) * executed and the other end of the backchannel is closed. * Just remove the event in this case. */ - (void)sudo_ev_del(ec->evbase, backchannel_event); + sudo_ev_del(ec->evbase, backchannel_event); } else { /* XXX - need new CMD_ type for monitor errors. */ errno = n ? EIO : ECONNRESET; @@ -702,10 +702,9 @@ signal_pipe_cb(int fd, int what, void *v) continue; /* On error, store errno and break out of the event loop. */ if (errno != EAGAIN) { - sudo_debug_printf(SUDO_DEBUG_ERROR, - "error reading signal pipe %s", strerror(errno)); ec->cstat->type = CMD_ERRNO; ec->cstat->val = errno; + sudo_warn(U_("error reading from signal pipe")); sudo_ev_loopbreak(ec->evbase); } break;