diff options
author | Chris Lamb <chris@chris-lamb.co.uk> | 2020-07-20 13:04:07 +0200 |
---|---|---|
committer | Chris Lamb <chris@chris-lamb.co.uk> | 2020-07-20 13:04:07 +0200 |
commit | 0afa55f093b2a5b4c360a8cb8f99c0ac5b3a80ec (patch) | |
tree | 73cfb520f25d2534943eb3a33e1cff06798714cd /logilab/common/proc.py | |
parent | 400b001682582b62a04eb0e5fcca0159999af987 (diff) | |
download | logilab-common-1.6.tar.gz |
Make the build reproducible1.6
Diffstat (limited to 'logilab/common/proc.py')
-rw-r--r-- | logilab/common/proc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/logilab/common/proc.py b/logilab/common/proc.py index c27356c..16e7b17 100644 --- a/logilab/common/proc.py +++ b/logilab/common/proc.py @@ -164,13 +164,13 @@ class MemorySentinel(Thread): """A class checking a process don't use too much memory in a separated daemonic thread """ - def __init__(self, interval, memory_limit, gpid=os.getpid()): + def __init__(self, interval, memory_limit, gpid=None): Thread.__init__(self, target=self._run, name="Test.Sentinel") self.memory_limit = memory_limit self._stop = Event() self.interval = interval self.setDaemon(True) - self.gpid = gpid + self.gpid = gpid if gpid is not None else os.getpid() def stop(self): """stop ap""" |