Merge pull request #5324 from giuseppe/fix-running-no-pause

rootless: raise error if the process is not found
This commit is contained in:
OpenShift Merge Robot 2020-02-25 21:16:26 +01:00 committed by GitHub
commit 6a03a9a538
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -510,7 +510,7 @@ func TryJoinFromFilePaths(pausePidPath string, needNewNamespace bool, paths []st
}
}
}
if !foundProcess {
if !foundProcess && pausePidPath != "" {
return BecomeRootInUserNS(pausePidPath)
}
if lastErr != nil {