OSDN Git Service

rework cancellation for sigwait, sigtimedwait and sigwaitinfo
authorPeter S. Mazinger <ps.m@gmx.net>
Thu, 21 Apr 2011 22:33:48 +0000 (00:33 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 15 Jun 2012 12:00:41 +0000 (14:00 +0200)
commitb72b0b14d0da0b506fbddf755cc8c7d0cd813287
tree844a9b81562265974b81f3a21af413c07cd7f349
parent24edbbd53a382f35a4365ae065f61d56579f52f1
rework cancellation for sigwait, sigtimedwait and sigwaitinfo

sigtimedwait:
- provide __sigtimedwait_nocancel
- use __SYSCALL_SIGSET_T_SIZE instead of _NSIG / 8
- do not provide __sigtimedwait
- guard a section to avoid failure on archs if SI_TKILL/SI_USER are not defined
sigwaitinfo:
- simply use sigtimedwait since that handles cancellation already
sigwait:
- use non-cancellable functions (sigtimedwait, sigsuspend)
- get rid of code already done in __sigtimedwait_nocancel

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
include/signal.h
libc/signal/sigwait.c
libc/sysdeps/linux/common/__rt_sigtimedwait.c
libc/sysdeps/linux/common/__rt_sigwaitinfo.c