winspool: Close read end of pipe in parent so we can detect child termination.

This commit is contained in:
Ken Thomases 2012-12-11 22:54:05 -06:00 committed by Alexandre Julliard
parent 4ec1c78ec4
commit 436edbdfc7

View file

@ -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);