signal: sys_pause() should check signal_pending()
commitd92fcf0552a15891b25c343cee340d295e24109c
authorOleg Nesterov <oleg@redhat.com>
Wed, 25 May 2011 17:22:27 +0000 (25 19:22 +0200)
committerOleg Nesterov <oleg@redhat.com>
Wed, 25 May 2011 17:22:27 +0000 (25 19:22 +0200)
treead43a9c62d926f223d699544bcef4695af4f3e9d
parent0666fb51b1483f27506e212cc7f7b2645b5c7acc
signal: sys_pause() should check signal_pending()

ERESTART* is always wrong without TIF_SIGPENDING. Teach sys_pause()
to handle the spurious wakeup correctly.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
kernel/signal.c