Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clh: isClhRunning waits for full timeout when clh exits
isClhRunning uses signal 0 to test whether the process is still alive or not. This doesn't work because the process is a direct child of the shim. Once it is dead the process becomes zombie. Since no one waits for it the process lingers until its parent dies and init reaps it. Hence sending signal 0 in isClhRunning will always return success whether the process is dead or not. This patch calls wait to reap the process, if it succeeds that means it is our child process, if not we send the signal. Fixes: kata-containers#9431 Signed-off-by: Alexandru Matei <alexandru.matei@uipath.com>
- Loading branch information