From 436edbdfc76cd17eae5ef6b020440b6dd116774e Mon Sep 17 00:00:00 2001 From: Ken Thomases Date: Tue, 11 Dec 2012 22:54:05 -0600 Subject: [PATCH] winspool: Close read end of pipe in parent so we can detect child termination. --- dlls/winspool.drv/info.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c index f23d8ccd657..45b49f3ccf6 100644 --- a/dlls/winspool.drv/info.c +++ b/dlls/winspool.drv/info.c @@ -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);