From cd26d2891d3d01cdfeab9b097cc54a8ca7f924ef Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 2 Jun 2010 14:23:38 -0400 Subject: [PATCH] Unbreak the non-io logging case. --- src/exec.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/exec.c b/src/exec.c index b234ef238..4e013b874 100644 --- a/src/exec.c +++ b/src/exec.c @@ -799,7 +799,11 @@ sudo_execve(struct command_details *details, char *argv[], char *envp[], if (n == -1) { if (errno == EINTR) continue; - if (errno != EAGAIN) { + /* + * If not logging I/O we will receive ECONNRESET when + * the command is executed. It is safe to ignore this. + */ + if (log_io && errno != EAGAIN) { cstat->type = CMD_ERRNO; cstat->val = errno; break; -- 2.40.0