Commit 3ac04ed0 authored by Chong Yidong's avatar Chong Yidong
Browse files

* 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"))
parent d6d1029d
2006-10-27 Slawomir Nowaczyk <slawek@cs.lth.se> (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 <keramida@ceid.upatras.gr> (tiny change) 2006-11-03 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
   
* xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to * xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to
......
...@@ -486,7 +486,8 @@ sys_wait (int *status) ...@@ -486,7 +486,8 @@ sys_wait (int *status)
{ {
for (cp = child_procs+(child_proc_count-1); cp >= child_procs; cp--) for (cp = child_procs+(child_proc_count-1); cp >= child_procs; cp--)
/* some child_procs might be sockets; ignore them */ /* 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; wait_hnd[nh] = cp->procinfo.hProcess;
cps[nh] = cp; cps[nh] = cp;
......
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