summaryrefslogtreecommitdiffstats
path: root/py/mock/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/mock/util.py')
-rw-r--r--py/mock/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/mock/util.py b/py/mock/util.py
index e98d3a6..dbd4296 100644
--- a/py/mock/util.py
+++ b/py/mock/util.py
@@ -76,7 +76,7 @@ def orphansKill(rootToKill):
for fn in os.listdir("/proc"):
try:
root = os.readlink("/proc/%s/root" % fn)
- if root == rootToKill:
+ if os.path.realpath(root) == os.path.realpath(rootToKill):
getLog().warning("Process ID %s still running in chroot. Killing..." % fn)
os.kill(int(fn, 10), 15)
except OSError, e: