Module: wine Branch: master Commit: 436edbdfc76cd17eae5ef6b020440b6dd116774e URL: http://source.winehq.org/git/wine.git/?a=commit;h=436edbdfc76cd17eae5ef6b020... Author: Ken Thomases <ken(a)codeweavers.com> Date: Tue Dec 11 22:54:05 2012 -0600 winspool: Close read end of pipe in parent so we can detect child termination. --- dlls/winspool.drv/info.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c index f23d8cc..45b49f3 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);