* pinfo.cc (_pinfo::dup_proc_pipe): DUPLICATE_CLOSE_SOURCE closes the handle
regardless, so revert previous change.
This commit is contained in:
		| @@ -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> | 2004-12-27  Christopher Faylor  <cgf@timesys.com> | ||||||
|  |  | ||||||
| 	* cygthread.cc (cygthread::stub): Add better debug output. | 	* cygthread.cc (cygthread::stub): Add better debug output. | ||||||
|   | |||||||
| @@ -768,11 +768,7 @@ _pinfo::dup_proc_pipe (HANDLE hProcess) | |||||||
| 			      0, FALSE, | 			      0, FALSE, | ||||||
| 			      DUPLICATE_SAME_ACCESS | DUPLICATE_CLOSE_SOURCE); | 			      DUPLICATE_SAME_ACCESS | DUPLICATE_CLOSE_SOURCE); | ||||||
|   if (!res) |   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 |   else | ||||||
|     { |     { | ||||||
|       wr_proc_pipe_owner = dwProcessId; |       wr_proc_pipe_owner = dwProcessId; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user