It seems like that there is no difference between forking once and forking twice, however, I accident found this article: http://hi.baidu.com/22000254/blog/item/9c2a01860d66713666096e38.html
The reason to fork twice is to prevent create zombie process! I never think of that before.
No comments:
Post a Comment