Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
runtime_vm: Create deleteContainer() helper
deleteContainer() function is a helper that can be used for cleaning up containers in case of error. Instead of taking the risk of duplicating code, let's take the relevant part out of the DeleteContainer(), and make it available for future uses. It's important to note that other functions cannot just call DeleteContainer() directly if they're holding a container's opLock, as DeleteContainer() would try to acquire the very same lock, causing then a happy little accident called "deadlock". Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> (cherry picked from commit d785c14) (cherry picked from commit bdfe05c)
- Loading branch information