git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa9e33b
)
*** empty log message ***
author
David E. Eisenstat
<deisenst@cs.princeton.edu>
Sat, 23 Jun 2007 12:53:41 +0000
(12:53 +0000)
committer
David E. Eisenstat
<deisenst@cs.princeton.edu>
Sat, 23 Jun 2007 12:53:41 +0000
(12:53 +0000)
accounts.py
patch
|
blob
|
history
diff --git
a/accounts.py
b/accounts.py
index
08ceac1
..
bacaf5c
100644
(file)
--- 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()