|
|
Log in / Subscribe / Register

Stupid question - that Linus anticipated

Stupid question - that Linus anticipated

Posted Feb 17, 2007 2:05 UTC (Sat) by ds2horner (guest, #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).


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds