aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin
diff options
context:
space:
mode:
authorChristian Franke <christian.franke@t-online.de>2024-10-23 12:24:06 +0200
committerCorinna Vinschen <corinna@vinschen.de>2024-10-23 13:25:09 +0200
commit6af8fea4bbad6678ad6ef82b00860877a01c3614 (patch)
tree52844ba667ea4be3fee402211ec2e5b82054d3e0 /winsup/cygwin
parentbdd06f82a186a509256d1b3c2dd9282f4c96553f (diff)
downloadnewlib-6af8fea4bbad6678ad6ef82b00860877a01c3614.zip
newlib-6af8fea4bbad6678ad6ef82b00860877a01c3614.tar.gz
newlib-6af8fea4bbad6678ad6ef82b00860877a01c3614.tar.bz2
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 <christian.franke@t-online.de>
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/posix_timer.cc1
-rw-r--r--winsup/cygwin/release/3.5.52
2 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/posix_timer.cc b/winsup/cygwin/posix_timer.cc
index 9d832f2..a336b2b 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 d01f31c..bcc2c66 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.