commit | 3aeb884b4ec442719a2d8aa15316415a7412efd8 | [log] [tgz] |
---|---|---|
author | Paul Mundt <lethal@linux-sh.org> | Tue Jun 19 12:33:21 2007 +0900 |
committer | Paul Mundt <lethal@linux-sh.org> | Tue Jun 19 12:33:21 2007 +0900 |
tree | bcf69c95107b8296cbe76c0d86ee7cadc05c6019 | |
parent | 5527398218aae85f37552a69fad163fa500c39e4 [diff] |
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>