winspool: Close read end of pipe in parent so we can detect child termination.
This commit is contained in:
parent
4ec1c78ec4
commit
436edbdfc7
|
@ -8096,6 +8096,8 @@ static BOOL schedule_pipe(LPCWSTR cmd, LPCWSTR filename)
|
|||
goto end;
|
||||
}
|
||||
|
||||
close(fds[0]);
|
||||
fds[0] = -1;
|
||||
while((no_read = read(file_fd, buf, sizeof(buf))) > 0)
|
||||
write(fds[1], buf, no_read);
|
||||
|
||||
|
|
Loading…
Reference in New Issue