From 04ea60440a421a972365670aefe8e389b015f436 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 14 Aug 2012 15:05:13 +0000 Subject: [PATCH] * thread.cc (semaphore::_fixup_after_fork): Fix Win32 error output in api_fatal call. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/thread.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + + * thread.cc (semaphore::_fixup_after_fork): Fix Win32 error output in + api_fatal call. + 2012-08-14 Christopher Faylor * 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"); } }