]> sourceware.org Git - newlib-cygwin.git/commitdiff
Cygwin: timer_delete: Fix return value
authorChristian Franke <christian.franke@t-online.de>
Wed, 23 Oct 2024 10:24:06 +0000 (12:24 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 23 Oct 2024 11:25:09 +0000 (13:25 +0200)
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 <christian.franke@t-online.de>
winsup/cygwin/posix_timer.cc
winsup/cygwin/release/3.5.5

index 9d832f2014639fc49b6044355d4052eba22bd32d..a336b2bc2d59bb3e4a329cf8d7d8809a1ddfff44 100644 (file)
@@ -530,6 +530,7 @@ timer_delete (timer_t timerid)
          __leave;
        }
       delete in_tt;
+      ret = 0;
     }
   __except (EFAULT) {}
   __endtry
index d01f31c603b0d982e49d8dd532e729df797ee1a0..bcc2c661b741d603a01496cc523a4172fab3e09a 100644 (file)
@@ -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.
This page took 0.034393 seconds and 5 git commands to generate.