* thread.cc (semaphore::_fixup_after_fork): Fix Win32 error output in

api_fatal call.
This commit is contained in:
Corinna Vinschen 2012-08-14 15:05:13 +00:00
parent fee05a2380
commit 04ea60440a
2 changed files with 6 additions and 1 deletions

View File

@ -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> 2012-08-14 Christopher Faylor <me.cygwin2012@cgf.cx>
* errno.cc (errmap): Keep sorted. * errno.cc (errmap): Keep sorted.

View File

@ -3523,7 +3523,7 @@ semaphore::_fixup_after_fork ()
this->win32_obj_id = ::CreateSemaphore (&sec_none_nih, currentvalue, this->win32_obj_id = ::CreateSemaphore (&sec_none_nih, currentvalue,
LONG_MAX, NULL); LONG_MAX, NULL);
if (!win32_obj_id) if (!win32_obj_id)
api_fatal ("failed to create new win32 semaphore, error %d"); api_fatal ("failed to create new win32 semaphore, %E");
} }
} }