In child, handle parent side of the pipe going away.
This commit is contained in:
@@ -723,8 +723,7 @@ script_child(const char *path, char *argv[], char *envp[], int backchannel, int
|
|||||||
if (n == -1) {
|
if (n == -1) {
|
||||||
if (errno == EINTR)
|
if (errno == EINTR)
|
||||||
continue;
|
continue;
|
||||||
} else if (n != sizeof(cstat)) {
|
warning("error reading command status");
|
||||||
warningx("error reading command status");
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (cstat.type != CMD_SIGNO) {
|
if (cstat.type != CMD_SIGNO) {
|
||||||
|
Reference in New Issue
Block a user