]> granicus.if.org Git - sudo/commitdiff
In child, handle parent side of the pipe going away.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 21 Feb 2010 15:30:43 +0000 (10:30 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 21 Feb 2010 15:30:43 +0000 (10:30 -0500)
src/script.c

index 9e75db905be3773b0648f1b82e5803a1a60cc8f6..b378b06997349d5251e561ea3a2b6e25ff0ba85d 100644 (file)
@@ -723,8 +723,7 @@ script_child(const char *path, char *argv[], char *envp[], int backchannel, int
        if (n == -1) {
            if (errno == EINTR)
                continue;
-       } else if (n != sizeof(cstat)) {
-           warningx("error reading command status");
+           warning("error reading command status");
            break;
        }
        if (cstat.type != CMD_SIGNO) {