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.
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.