Commit 31e0522b authored by Yusei Tahara's avatar Yusei Tahara Committed by Klaus Wölfel

erp5/util/testnode: iterate through a copy of the given set, this set is modified in the for loop.

parent b3f52160
...@@ -221,7 +221,7 @@ class ProcessManager(object): ...@@ -221,7 +221,7 @@ class ProcessManager(object):
self.under_cancellation = True self.under_cancellation = True
for timer in self.timer_set: for timer in self.timer_set:
timer.cancel() timer.cancel()
for pgpid in self.process_pid_set: for pgpid in tuple(self.process_pid_set):
killCommand(pgpid) killCommand(pgpid)
try: try:
pid_file = self.supervisord_pid_file pid_file = self.supervisord_pid_file
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment