mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 00:07:36 +08:00
* pinfo.cc (_pinfo::dup_proc_pipe): Fatalize a warning when debugging.
This commit is contained in:
parent
07e7349db2
commit
f32d96ff99
@ -1,3 +1,7 @@
|
||||
2011-11-14 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||
|
||||
* pinfo.cc (_pinfo::dup_proc_pipe): Fatalize a warning when debugging.
|
||||
|
||||
2011-11-13 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||
|
||||
Remove erroneously checked-in debugging statements.
|
||||
|
@ -989,6 +989,11 @@ proc_waiter (void *arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef DEBUGGING
|
||||
#define warn_printf api_fatal
|
||||
#else
|
||||
#define warn_printf system_printf
|
||||
#endif
|
||||
HANDLE
|
||||
_pinfo::dup_proc_pipe (HANDLE hProcess)
|
||||
{
|
||||
@ -1004,8 +1009,8 @@ _pinfo::dup_proc_pipe (HANDLE hProcess)
|
||||
if (!res && WaitForSingleObject (hProcess, 0) != WAIT_OBJECT_0)
|
||||
{
|
||||
wr_proc_pipe = orig_wr_proc_pipe;
|
||||
system_printf ("DuplicateHandle failed, pid %d, hProcess %p, wr_proc_pipe %p, %E",
|
||||
pid, hProcess, wr_proc_pipe);
|
||||
warn_printf ("something failed for pid %d: res %d, hProcess %p, wr_proc_pipe %p vs. %p, %E",
|
||||
res, pid, hProcess, wr_proc_pipe, orig_wr_proc_pipe);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user