* 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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user