fix for parent not listening to sigs during pcntl_waitpid