How to wait for exit of non-children processes

前端 未结 9 2366
生来不讨喜
生来不讨喜 2020-11-27 18:45

For child processes, the wait() and waitpid() functions can be used to suspends execution of the current process until a child has exited. But t

9条回答
  •  遥遥无期
    2020-11-27 19:31

    Maybe it could be possible to wait for /proc/[pid] or /proc/[pid]/[something] to disappear?

    There are poll() and other file event waiting functions, maybe that could help?

提交回复
热议问题