From 8c873bf0190740ac1102e13ff7aeb6c08048abfd Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Sun, 8 Nov 2015 20:06:42 -0200 Subject: Remove signal handling for nanosleep (bug 16364) Linux 2.6.32 and forward do not show the issue regarding SysV SIGCHLD vs. SIG_IGN for nanosleep which make it feasible to use it for sleep implementation without requiring any hacking to handle the spurious wake up. The issue is likely being fixed before 2.6 and git history [1] [2]. This patch simplifies the sleep code to call nanosleep directly by using the posix default version. It also removes the early cancellation tests for zero argument, since nanosleep will handle cancellation in this case. [1] https://lkml.org/lkml/2004/11/25/5 [2] https://lkml.org/lkml/2003/11/8/50 Checked on x86_64, ppc64le, and aarch64. [BZ #16364] * sysdeps/unix/sysv/linux/sleep.c: Remove file * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling. --- ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 42967e72c3..4e12f20963 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-11-20 Adhemerval Zanella + + [BZ #16364] + * sysdeps/unix/sysv/linux/sleep.c: Remove file. + * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling. + 2015-11-20 Stefan Liebler * sysdeps/s390/fpu/bits/mathinline.h: -- cgit 1.4.1