Quantcast
Channel: lkml.org : Ganesh Sittampalam
Viewing all articles
Browse latest Browse all 627

Re: [PATCH v2 20/20] signal: Don't restart fork when signals come in.

$
0
0
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;
        if (signal_pending(current))
                goto fork_out;

Viewing all articles
Browse latest Browse all 627

Trending Articles