core: mark every side O_CLOEXEC

Not sure why this wasn't done before, seems it should have always been
this way, and can't see any reason it wasn't. Without it, many fds are
leaked into at least .local() children. Closes #163.
This commit is contained in:
David Wilson 2018-03-23 06:58:59 +05:45
parent 2d7821b824
commit 65fcef2374
1 changed files with 1 additions and 0 deletions

View File

@ -666,6 +666,7 @@ class Side(object):
self.stream = stream
self.fd = fd
self.keep_alive = keep_alive
set_cloexec(fd)
set_nonblock(fd)
def __repr__(self):