Stupid question - that Linus anticipated
Posted Feb 17, 2007 2:05 UTC (Sat) by
ds2horner (subscriber, #13438)
In reply to:
Stupid question by spitzak
Parent article:
Alternatives to fibrils
In his explanation it was so that the fork code could be reused with no modifications. He implies it could be done if it matters to callers.
Linus:
Now, I agree that this is a bit ugly in some of the details: in
particular, it means that if the system call blocks, we will literally
return as a *different* thread to user space. If you care, you shouldn't
use this interface, or come up with some way to make it work nicely (doing
it this way meant that I could just re-use all the clone/fork code as-is).
(
Log in to post comments)