This commit is contained in:
Alexandre Aubin 2017-08-13 17:18:17 -04:00
parent 869a4e2f14
commit d28990350c

View file

@ -496,7 +496,6 @@ class MoulinetteLock(object):
return lock_pid return lock_pid
def _is_son_of_locked(self): def _is_son_of_locked(self):
lock_pid = self._lock_PID() lock_pid = self._lock_PID()
@ -506,7 +505,7 @@ class MoulinetteLock(object):
parent = psutil.Process() parent = psutil.Process()
# While this is not the very first process # While this is not the very first process
while parent.parent() != None: while parent.parent() is not None:
# If parent PID is the lock, the yes! we are a son of the process # If parent PID is the lock, the yes! we are a son of the process
# with the lock... # with the lock...
if parent.ppid() == int(lock_pid): if parent.ppid() == int(lock_pid):