signal: sys_pause() should check signal_pending()
authorOleg Nesterov <oleg@redhat.com>
Wed, 25 May 2011 17:22:27 +0000 (19:22 +0200)
committerOleg Nesterov <oleg@redhat.com>
Wed, 25 May 2011 17:22:27 +0000 (19:22 +0200)
commitd92fcf0552a15891b25c343cee340d295e24109c
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