Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The more stuff that piles on using pthread_atfork then also contribute to fork() being unnecessarily slow for the specific combination of fork+exec.


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: