Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-11-14 22:22:46 +0400
committerChristopher Faylor <me@cgf.cx>2011-11-14 22:22:46 +0400
commitf32d96ff9927f60980c14c1bb2d5525d8d683583 (patch)
treeb59bc39c67caddc07c2b8b2a2d98c62aeffaf217 /winsup/cygwin/pinfo.cc
parent07e7349db295636bb0c8317a577a0795443b20c4 (diff)
* pinfo.cc (_pinfo::dup_proc_pipe): Fatalize a warning when debugging.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r--winsup/cygwin/pinfo.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index 52aac9349..8c44fc5ad 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -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
{