* 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

@@ -193,7 +193,7 @@ kill_pgrp (pid_t pid, int sig)
winpids pids;
for (unsigned i = 0; i < pids.npids; i++)
{
pinfo p (pids[i]);
pinfo p (pids[i], PID_NOREDIR);
if (!proc_exists (p))
continue;