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

Well, it's a failure of the script and the POSIX API - it is unfortunate that a pid_t inhabited by -1 means "failure" in one case and "everything" in another. It is certainly not fork, narrowly, to blame.


I think the point that the author was making, outside of any criticism to the API itself, is that the hapless programmer may not know that fork() could even return -1. The article is pointing out that possibility as documented by the API, not criticizing a failure of the API. Whether or not the API is faulty in this--and I tend to agree with you--is outside of the scope of the article, though only just.


I wasn't making any particular comment on the content of the article. It was certainly relevant to the discussion tangent the thread had wandered down.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: