fix waitpid() usage