* sigproc.cc (child_info_spawn::reattach_children): Clean up handle when can't
open parent process or suffer handle leak.
This commit is contained in:
@@ -868,6 +868,8 @@ child_info_spawn::reattach_children ()
|
||||
children[i].rd_proc_pipe);
|
||||
else if ((p.hProcess = OpenProcess (PROCESS_QUERY_INFORMATION, false, p->pid)))
|
||||
p.reattach ();
|
||||
else
|
||||
CloseHandle (p.rd_proc_pipe);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user