Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kllrnohj
on Feb 28, 2022
|
parent
|
context
|
favorite
| on:
Fork() is evil; vfork() is goodness; afork() would...
The more stuff that piles on using pthread_atfork then also contribute to fork() being unnecessarily slow for the specific combination of fork+exec.
kazinator
on Feb 28, 2022
[–]
Right, and so POSIX "fixed" that by standardizing posix_spawn. Thus fork is now mainly for those scenarios in which exec is not called, plus traditional coding that is portable to old systems.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: