Skip to content
Commit 3aeb884b authored by Paul Mundt's avatar Paul Mundt
Browse files

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: default avatarCarl Shaw <shaw.carl@gmail.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 55273982
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment