Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libct: suppress bogus "unable to terminate" warnings
While working on a test case for [1], I got the following warning: > level=warning msg="unable to terminate initProcess" error="exit status 1" Obviously, the warning is bogus since the initProcess is terminated. This is happening because terminate() can return errors from either Kill() or Wait(), and the latter returns an error if the process has not finished successfully (i.e. exit status is not 0 or it was killed). Check for a particular error type and filter out those errors. [1] opencontainers#2683 Signed-off-by: Kir Kolyshkin <[email protected]>
- Loading branch information