]> git.ipfire.org Git - thirdparty/tornado.git/commit
autoreload: Don't close the IOLoop on reload 1984/head
authorBen Darnell <ben@bendarnell.com>
Sat, 25 Mar 2017 18:00:26 +0000 (14:00 -0400)
committerBen Darnell <ben@bendarnell.com>
Sat, 25 Mar 2017 18:00:26 +0000 (14:00 -0400)
commitfa809ed12348fea956444720ffc653516e4651e0
tree4d61c4ad4e8e426f2b6d9bad3d017ae8454e9880
parent8ea13db107f4d44fadd24578e693f2838012caa7
autoreload: Don't close the IOLoop on reload

This was a last-ditch effort to close file descriptors that were not
marked as CLOEXEC. However, it was never complete (it didn't touch
file descriptors that were not registered on the IOLoop), and it can't
work with asyncio (which does not allow closing the IOLoop without
stopping it and unwinding the stack first). Since Tornado (and
hopefully all major libraries using the IOLoop) is careful about
setting CLOEXEC when needed, just get rid of the close.

Fixes #1543
tornado/autoreload.py