Repeat after me: do not use fork(). When you feel the urge to use fork(), abstain. fork() is not a good API. fork() is UNIX worst thing only second to escaping in bash.
-
-
More to the point though fork() is unsafe, almost impossible to use sanely (especially when paired with FD inheritance and not wanting to pass memory on to children etc.). The only safe pattern fork+exec has better (though less portable) equivalents now.
-
Fork+exec is exactly the use case that I had in mind. The API is rusty, but no more rusty than the rest of POSIX

- 2 more replies
New conversation -
-
-
Also more philosophically at the moment but it implies that virtual memory exists in the present day form and I'm not sure that's a great path forward.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.