Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libpod API: make wait endpoint better against rm races
In the common scenario of podman-remote run --rm the API is required to attach + start + wait to get exit code. This has the problem that the wait call races against the container removal from the cleanup process so it may not get the exit code back. However we keep the exit code around for longer than the container so we can just look it up in the endpoint. Of course this only works when we get a full id as param but podman-remote will do that. Signed-off-by: Paul Holzinger <[email protected]>
- Loading branch information