Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
StopContainer: return if cleanup process changed state
Commit 067442b improved stopping/killing a container by detecting whether the cleanup process has already fired and changed the state of the container. Further improve on that by returning early instead of trying to wait for the PID to finish. At that point we know that the container has exited but the previous PID may have been recycled already by the kernel. [NO NEW TESTS NEEDED] - the absence of the two flaking tests recorded in containers#17142 will tell. Fixes: containers#17142 Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
- Loading branch information