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.
pull/167/head
David Wilson 7 years ago
parent 2d7821b824
commit 65fcef2374

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

Loading…
Cancel
Save