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