From bdcc1227af141f3e8dbfdfb0587ecf3a915747dc Mon Sep 17 00:00:00 2001 From: "David E. Eisenstat" Date: Sat, 23 Jun 2007 12:53:41 +0000 Subject: [PATCH] *** empty log message *** --- accounts.py | 3 +++ 1 file changed, 3 insertions(+) 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() -- 2.47.0