* external.cc (fillout_pinfo): Pass PID_NOREDIR flag to pinfo init to avoid

finding execed processes twice.
* signal.cc (kill_pgrp): Ditto.
* spawn.cc (spawn_guts): Avoid passing first argument to CreateProcess when
running a windows shell so that CreateProcess will locate the shell.
Reorganize so that correct error is returned when CreateProcess fails.
This commit is contained in:
Christopher Faylor
2000-10-20 04:20:21 +00:00
parent 74266a0fee
commit a333dca2b8
5 changed files with 37 additions and 14 deletions

View File

@@ -44,7 +44,7 @@ fillout_pinfo (pid_t pid, int winpid)
DWORD thispid = pids[i++];
if (!thispid)
continue;
pinfo p (thispid);
pinfo p (thispid, PID_NOREDIR);
if (!p)
{