diff options
author | Christopher Faylor <me@cgf.cx> | 2004-12-28 06:07:45 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-12-28 06:07:45 +0000 |
commit | 264a0b2f54bc50fcc2d0e504ec708f1de0ffe011 (patch) | |
tree | c23ee336ba066507d190e543cb30de21748655d5 | |
parent | 57ba174fa0fd038154f5f24a32cad566796ee2a6 (diff) | |
download | cygnal-264a0b2f54bc50fcc2d0e504ec708f1de0ffe011.tar.gz cygnal-264a0b2f54bc50fcc2d0e504ec708f1de0ffe011.tar.bz2 cygnal-264a0b2f54bc50fcc2d0e504ec708f1de0ffe011.zip |
* pinfo.cc (_pinfo::dup_proc_pipe): DUPLICATE_CLOSE_SOURCE closes the handle
regardless, so revert previous change.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/pinfo.cc | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index f8136b1c3..c84d18822 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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. diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index edeb35e00..d600b58bd 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -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; |