有没有最简单的方法在子进程中等待标志/事件更改? [英]is there any simplest way to wait in a child process until a flag / event change?