sh: Handle -ERESTART_RESTARTBLOCK for restartable syscalls.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 19 Jun 2007 03:33:21 +0000 (12:33 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 19 Jun 2007 03:33:21 +0000 (12:33 +0900)
commit3aeb884b4ec442719a2d8aa15316415a7412efd8
treebcf69c95107b8296cbe76c0d86ee7cadc05c6019
parent5527398218aae85f37552a69fad163fa500c39e4
sh: Handle -ERESTART_RESTARTBLOCK for restartable syscalls.

The current implementation only handles -ERESTARTNOHAND, whereas we
also need to handle -ERESTART_RESTARTBLOCK in the handle_signal()
case for restartable system calls.

As noted by Carl:

This fixes the LTP test nanosleep03 - the current kernel causes
-ERESTART_RESTARTBLOCK to reach user space rather than the correct
-EINTR.

Reported-by: Carl Shaw <shaw.carl@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/signal.c