Make waitpid() blocking (but should not block because it is POLLIN)