master: force set_block() in tty_create_child too.

For gevent, just as in 5f7633cd56
This commit is contained in:
David Wilson 2017-12-18 18:52:01 +05:30
parent 5f7633cd56
commit e06111d944
1 changed files with 1 additions and 0 deletions

View File

@ -170,6 +170,7 @@ def tty_create_child(*args):
pid = os.fork()
if not pid:
mitogen.core.set_block(slave_fd)
os.dup2(slave_fd, 0)
os.dup2(slave_fd, 1)
os.dup2(slave_fd, 2)