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>2004-07-22 22:25:52 +0400
committerChristopher Faylor <me@cgf.cx>2004-07-22 22:25:52 +0400
commit5b7534fec397b69bce65bef12789e49d98bf0f47 (patch)
tree43f5472626121db8fe974575ba94bb5f602823d3
parent0da793ff2b41776aa3b683eb952c0df5bbfaba0a (diff)
* pinfo.cc (pinfo::init): Print handle in hex when MapViewOfFile fails.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/pinfo.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 3c4c4fc3e..d629ad0f0 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2004-07-22 Christopher Faylor <cgf@timesys.com>
+
+ * pinfo.cc (pinfo::init): Print handle in hex when MapViewOfFile fails.
+
2004-07-20 Corinna Vinschen <corinna@vinschen.de>
* shm.cc: Whitespace fixes.
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index f3a91754d..dcbdf27ca 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -194,7 +194,7 @@ pinfo::init (pid_t n, DWORD flag, HANDLE in_h)
procinfo = (_pinfo *) MapViewOfFileEx (h, access, 0, 0, 0, mapaddr);
if (!procinfo)
- api_fatal ("MapViewOfFileEx failed, %E");
+ api_fatal ("MapViewOfFileEx(%p) failed, %E", h);
ProtectHandle1 (h, pinfo_shared_handle);
if ((procinfo->process_state & PID_INITIALIZING) && (flag & PID_NOREDIR)