* pinfo.cc (_pinfo::dup_proc_pipe): DUPLICATE_CLOSE_SOURCE closes the handle
regardless, so revert previous change.
This commit is contained in:
parent
57ba174fa0
commit
264a0b2f54
@ -1,3 +1,8 @@
|
||||
2004-12-28 Christopher Faylor <cgf@timesys.com>
|
||||
|
||||
* pinfo.cc (_pinfo::dup_proc_pipe): DUPLICATE_CLOSE_SOURCE closes the
|
||||
handle regardless, so revert previous change.
|
||||
|
||||
2004-12-27 Christopher Faylor <cgf@timesys.com>
|
||||
|
||||
* cygthread.cc (cygthread::stub): Add better debug output.
|
||||
|
@ -768,11 +768,7 @@ _pinfo::dup_proc_pipe (HANDLE hProcess)
|
||||
0, FALSE,
|
||||
DUPLICATE_SAME_ACCESS | DUPLICATE_CLOSE_SOURCE);
|
||||
if (!res)
|
||||
{
|
||||
if (WaitForSingleObject (hProcess, 0) == WAIT_OBJECT_0)
|
||||
CloseHandle (wr_proc_pipe);
|
||||
sigproc_printf ("DuplicateHandle failed, pid %d, hProcess %p, %E", pid, hProcess);
|
||||
}
|
||||
sigproc_printf ("DuplicateHandle failed, pid %d, hProcess %p, %E", pid, hProcess);
|
||||
else
|
||||
{
|
||||
wr_proc_pipe_owner = dwProcessId;
|
||||
|
Loading…
Reference in New Issue
Block a user