Skip to content

Commit c843c35

Browse files
committedJun 4, 2015
worker: remove useless process wait
1 parent 50a6da9 commit c843c35

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed
 

‎artiq/master/worker.py

-4
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,13 @@ def close(self):
101101
logger.warning("failed to send terminate command to worker"
102102
" (RID %d), killing", self.rid, exc_info=True)
103103
self.process.kill()
104-
# Wait for process to terminate
105-
yield from self.process.communicate()
106104
return
107105
try:
108106
yield from asyncio_process_wait_timeout(self.process,
109107
self.term_timeout)
110108
except asyncio.TimeoutError:
111109
logger.warning("worker did not exit (RID %d), killing", self.rid)
112110
self.process.kill()
113-
# Wait for process to terminate
114-
yield from self.process.communicate()
115111
else:
116112
logger.debug("worker exited gracefully (RID %d)", self.rid)
117113
finally:

0 commit comments

Comments
 (0)
Please sign in to comment.