* timer.cc (timer_tracker::cancel): Demote api_fatal to system_printf, printing

more details about odd failure condition.
This commit is contained in:
Christopher Faylor 2014-06-05 19:50:24 +00:00
parent f9f90410fd
commit 4d79de90e1
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2014-06-05 Christopher Faylor <me.cygwin2014@cgf.cx>
* timer.cc (timer_tracker::cancel): Demote api_fatal to system_printf,
printing more details about odd failure condition.
2014-05-23 Corinna Vinschen <corinna@vinschen.de>
* autoload.cc (ldap_memfreeW): Remove.

View File

@ -66,8 +66,9 @@ timer_tracker::cancel ()
return false;
SetEvent (hcancel);
if (WaitForSingleObject (syncthread, INFINITE) != WAIT_OBJECT_0)
api_fatal ("WFSO failed waiting for timer thread, %E");
DWORD res = WaitForSingleObject (syncthread, INFINITE);
if (res != WAIT_OBJECT_0)
system_printf ("WFSO returned unexpected value %u, %E", res);
return true;
}