Fixes #189 - stacktrace when ctrl-c stops logs

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2015-09-15 20:46:22 -04:00
parent f49fc1867c
commit bdfb21f017
1 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,8 @@ from __future__ import absolute_import
from threading import Thread
from six.moves import _thread as thread
try:
from Queue import Queue, Empty
except ImportError:
@ -38,6 +40,9 @@ class Multiplexer(object):
yield item
except Empty:
pass
# See https://github.com/docker/compose/issues/189
except thread.error:
raise KeyboardInterrupt()
def _init_readers(self):
for iterator in self.iterators: