# HG changeset patch # User Chong Yidong # Date 1162611460 0 # Node ID a525ba4c658b6e2b11c3144bfe76bfaf821f9d21 # Parent 5e9b94d5f593af93bde74bded9cba631e06c6427 * w32proc.c: (sys_wait) Only wait for processes with fd<0. Others should be handled by sys_select instead. Fixes problems with (progn (start-process "" nil "ls") (call-process "ls")) diff -r 5e9b94d5f593 -r a525ba4c658b src/ChangeLog --- a/src/ChangeLog Sat Nov 04 03:28:27 2006 +0000 +++ b/src/ChangeLog Sat Nov 04 03:37:40 2006 +0000 @@ -1,3 +1,9 @@ +2006-10-27 Slawomir Nowaczyk (tiny change) + + * w32proc.c: (sys_wait) Only wait for processes with fd<0. + Others should be handled by sys_select instead. Fixes problems + with (progn (start-process "" nil "ls") (call-process "ls")) + 2006-11-03 Giorgos Keramidas (tiny change) * xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to diff -r 5e9b94d5f593 -r a525ba4c658b src/w32proc.c --- a/src/w32proc.c Sat Nov 04 03:28:27 2006 +0000 +++ b/src/w32proc.c Sat Nov 04 03:37:40 2006 +0000 @@ -486,7 +486,8 @@ { for (cp = child_procs+(child_proc_count-1); cp >= child_procs; cp--) /* some child_procs might be sockets; ignore them */ - if (CHILD_ACTIVE (cp) && cp->procinfo.hProcess) + if (CHILD_ACTIVE (cp) && cp->procinfo.hProcess + && (cp->fd < 0 || (fd_info[cp->fd].flags & FILE_AT_EOF) != 0)) { wait_hnd[nh] = cp->procinfo.hProcess; cps[nh] = cp;