Commit 436edbdf authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

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

parent 4ec1c78e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment