Don't leak slave's main IO streams.
This commit is contained in:
parent
70c2032bb2
commit
6f1b6df0f9
|
@ -376,6 +376,8 @@ class Stream(BasicStream):
|
|||
def Accept(self, rfd, wfd):
|
||||
self.read_side = Side(self, os.dup(rfd))
|
||||
self.write_side = Side(self, os.dup(wfd))
|
||||
set_cloexec(self.read_side.fd)
|
||||
set_cloexec(self.write_side.fd)
|
||||
self._context.stream = self
|
||||
|
||||
def Connect(self):
|
||||
|
|
Loading…
Reference in New Issue