From: Christian Franke Date: Wed, 23 Oct 2024 10:24:06 +0000 (+0200) Subject: Cygwin: timer_delete: Fix return value X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=6af8fea4bbad6678ad6ef82b00860877a01c3614;p=newlib-cygwin.git Cygwin: timer_delete: Fix return value timer_delete() always returned failure. This issue has been detected by 'stress-ng --hrtimers 1'. Fixes: 229ea3f23c015 ("Cygwin: posix timers: reimplement using OS timer") Signed-off-by: Christian Franke --- diff --git a/winsup/cygwin/posix_timer.cc b/winsup/cygwin/posix_timer.cc index 9d832f201..a336b2bc2 100644 --- a/winsup/cygwin/posix_timer.cc +++ b/winsup/cygwin/posix_timer.cc @@ -530,6 +530,7 @@ timer_delete (timer_t timerid) __leave; } delete in_tt; + ret = 0; } __except (EFAULT) {} __endtry diff --git a/winsup/cygwin/release/3.5.5 b/winsup/cygwin/release/3.5.5 index d01f31c60..bcc2c661b 100644 --- a/winsup/cygwin/release/3.5.5 +++ b/winsup/cygwin/release/3.5.5 @@ -10,3 +10,5 @@ Fixes: - Fix pread() and pwrite() EBADF error after fork(). Addresses: https://sourceware.org/pipermail/cygwin/2024-September/256468.html + +- Fix timer_delete() return value which always indicated failure.