diff options
author | Guido van Rossum <guido@python.org> | 2013-01-21 08:37:57 -0800 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2013-01-21 08:37:57 -0800 |
commit | 98eb0c7155ec57bce37ac073f8fdfc091cc73cc5 (patch) | |
tree | 4bc498413018202cf95be7303e068254b7ca9508 | |
parent | fb25d9012471e095db73bb5d19c39dc17a42669d (diff) | |
download | trollius-git-98eb0c7155ec57bce37ac073f8fdfc091cc73cc5.tar.gz |
Close ssock/csock FDs upon event loop close().
-rw-r--r-- | tulip/unix_events.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tulip/unix_events.py b/tulip/unix_events.py index bf58d22..cea3ba9 100644 --- a/tulip/unix_events.py +++ b/tulip/unix_events.py @@ -83,7 +83,7 @@ class UnixEventLoop(events.EventLoop): if selector is None: # pick the best selector class for the platform selector = selectors.Selector() - logging.info('Using selector: %s', selector.__class__.__name__) + logging.debug('Using selector: %s', selector.__class__.__name__) self._selector = selector self._ready = collections.deque() self._scheduled = [] @@ -96,6 +96,8 @@ class UnixEventLoop(events.EventLoop): if self._selector is not None: self._selector.close() self._selector = None + self._ssock.close() + self._csock.close() def _make_self_pipe(self): # A self-socket, really. :-) |