From: David E. Eisenstat Date: Sat, 23 Jun 2007 12:53:41 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: NodeManager-1.6-1~93 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=bdcc1227af141f3e8dbfdfb0587ecf3a915747dc;p=nodemanager.git *** empty log message *** --- diff --git a/accounts.py b/accounts.py index 08ceac1..bacaf5c 100644 --- a/accounts.py +++ b/accounts.py @@ -32,6 +32,7 @@ import tools # When this variable is true, start after any ensure_created startingup = False # Cumulative delay for starts when startingup is true +csd_lock = threading.Lock() cumstartdelay = 0 # shell path -> account class association @@ -124,8 +125,10 @@ class Worker: else: self._acct.configure(rec) if startingup: global cumstartdelay + csd_lock.acquire() self._acct.start(delay=cumstartdelay) cumstartdelay += 2 + csd_lock.release() elif next_class != curr_class or self._acct.initscriptchanged: self._acct.start()