In child, handle parent side of the pipe going away.

This commit is contained in:
Todd C. Miller
2010-02-21 10:30:43 -05:00
parent 32ea572f27
commit d73e870e6f

View 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) {