Commit 170f6f41 authored by Vincent Pelletier's avatar Vincent Pelletier

Switch kill order to sequential, so that displayed tracebacks stop being interleaved in stderr.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@817 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent e5e2bdf6
......@@ -94,11 +94,10 @@ class NEOProcess:
return os.WEXITSTATUS(os.waitpid(self.pid, options)[1])
def killallNeo():
# Kill all processes first
[x.kill() for x in neo_process_list]
# Then wait for each process' completion
while len(neo_process_list):
neo_process_list.pop().wait()
process = neo_process_list.pop()
process.kill()
process.wait()
NEO_MASTER = 'neomaster'
NEO_STORAGE = 'neostorage'
......
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