Merge pull request #5324 from giuseppe/fix-running-no-pause
rootless: raise error if the process is not found
This commit is contained in:
		
						commit
						6a03a9a538
					
				| 
						 | 
					@ -510,7 +510,7 @@ func TryJoinFromFilePaths(pausePidPath string, needNewNamespace bool, paths []st
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if !foundProcess {
 | 
						if !foundProcess && pausePidPath != "" {
 | 
				
			||||||
		return BecomeRootInUserNS(pausePidPath)
 | 
							return BecomeRootInUserNS(pausePidPath)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if lastErr != nil {
 | 
						if lastErr != nil {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue