Linus Torvalds writes: (Summary) wrote:
Oh, the previous version had this too, but it wasn't as obvious because it was just in a single line:
because it was just in a single line:
return ERR_PTR(restart_syscall());
return ERR_PTR(restart_syscall());
but it's just crazy.
but it's just crazy.
It should just be
It should just be
retval = -ERESTARTNOINTR;
[...]
+ }Oh, the previous version had this too, but it wasn't as obvious because it was just in a single line:
because it was just in a single line:
return ERR_PTR(restart_syscall());
return ERR_PTR(restart_syscall());
but it's just crazy.
but it's just crazy.
It should just be
It should just be
retval = -ERESTARTNOINTR;
if (signal_pending(current)) goto fork_out;