BNUACM / bnuoj-backend

Backend service for BNUOJ (Judger and Dispatcher)
GNU Affero General Public License v3.0
10 stars 9 forks source link

Fix /dev/random problem: add initial value for status in waitpid() #2

Closed crccw closed 9 years ago

crccw commented 9 years ago

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

51isoft commented 9 years ago

Any official documentations on that?