From c843c353d7c4725e676cebaf2c50084595951369 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 5 Jun 2015 00:05:38 +0800 Subject: [PATCH] worker: remove useless process wait --- artiq/master/worker.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/artiq/master/worker.py b/artiq/master/worker.py index 30890d485..bb89907f4 100644 --- a/artiq/master/worker.py +++ b/artiq/master/worker.py @@ -101,8 +101,6 @@ class Worker: logger.warning("failed to send terminate command to worker" " (RID %d), killing", self.rid, exc_info=True) self.process.kill() - # Wait for process to terminate - yield from self.process.communicate() return try: yield from asyncio_process_wait_timeout(self.process, @@ -110,8 +108,6 @@ class Worker: except asyncio.TimeoutError: logger.warning("worker did not exit (RID %d), killing", self.rid) self.process.kill() - # Wait for process to terminate - yield from self.process.communicate() else: logger.debug("worker exited gracefully (RID %d)", self.rid) finally: