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.
-
-
-
Replying to @indutny @mitsuhiko
Terrible interactions with signals and threads.
2 replies 1 retweet 2 likes -
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.
2 replies 0 retweets 2 likes -
Replying to @mitsuhiko @pcwalton
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
1 reply 0 retweets 0 likes -
Replying to @indutny @mitsuhiko
Vfork is better (at least in theory) for the fork/exec use case.
1 reply 0 retweets 0 likes
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.