commit | 03265cbdf0fc0123883696d1eb84d2582b2b2732 | [log] [tgz] |
---|---|---|
author | Chen Ran <crccw@moonux.org> | Fri Nov 28 09:24:37 2014 +0800 |
committer | Chen Ran <crccw@moonux.org> | Fri Nov 28 09:24:37 2014 +0800 |
tree | 491fd67588a8cdc7424e625f0fa86bf23b79c79d | |
parent | a5052532b4450692cd66f530ccde690d6eba1e0b [diff] |
Fix /dev/random problem: add initial value for status in waitpid() It seems that if there's no child process terminated, waitpid won't set status. This will cause problem when status=0 initially, which is the case on the server Also explains why everything is ok locally, where initail value of status is some random number