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
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2012-08-14 19:05:13 +0400
committerCorinna Vinschen <corinna@vinschen.de>2012-08-14 19:05:13 +0400
commit04ea60440a421a972365670aefe8e389b015f436 (patch)
tree52acdf3926f3fc450ef9a3fc6f751f6eb4d5971a /winsup
parentfee05a2380709eeac1ecc415d865f73466a1c2be (diff)
* thread.cc (semaphore::_fixup_after_fork): Fix Win32 error output in
api_fatal call.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/thread.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 96c5339f0..4270f5b4d 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2012-08-14 Corinna Vinschen <corinna@vinschen.de>
+
+ * thread.cc (semaphore::_fixup_after_fork): Fix Win32 error output in
+ api_fatal call.
+
2012-08-14 Christopher Faylor <me.cygwin2012@cgf.cx>
* errno.cc (errmap): Keep sorted.
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc
index aefab24cd..e30490380 100644
--- a/winsup/cygwin/thread.cc
+++ b/winsup/cygwin/thread.cc
@@ -3523,7 +3523,7 @@ semaphore::_fixup_after_fork ()
this->win32_obj_id = ::CreateSemaphore (&sec_none_nih, currentvalue,
LONG_MAX, NULL);
if (!win32_obj_id)
- api_fatal ("failed to create new win32 semaphore, error %d");
+ api_fatal ("failed to create new win32 semaphore, %E");
}
}