Cleanup sigpause implementation
commitad4f43a2344864ae2304060dcc722a7a63bad1b4
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 3 Nov 2017 12:55:09 +0000 (3 10:55 -0200)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 15 Nov 2017 17:45:39 +0000 (15 15:45 -0200)
tree3de70e9c5d60927f0eedbd7179773f8d379812bf
parentd0212d429da889345978546f215ce62a5f0e007a
Cleanup sigpause implementation

This patch simplify sigpause by remobing the single thread optimization
since it will be handled already by the __sigsuspend call.

Checked on x86_64-linux-gnu.

* sysdeps/posix/sigpause.c (do_sigpause): Remove.
(__sigpause): Rely on __sigsuspend to implement single thread
optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.

Signed-off-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Reviewed-by: Zack Weinberg <zackw@panix.com>
ChangeLog
sysdeps/posix/sigpause.c