Lind-Project / native_client

native_client trusted code base
BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

Fix waitpid #129

Closed rennergade closed 1 year ago

rennergade commented 1 year ago

Fixes the WAIT_ANY section of waitpid so that it only checks finished processes (zombies) instead of super-naively looping over all cages. This also fixes a bug for backgrounding where it was getting stuck waiting on a back grounded process instead of returning a finished later one.