Support waitpid(-1). ref #102