Forgot to close stdin_read_fd in the master process

This commit is contained in:
Kovid Goyal 2017-09-08 10:10:24 +05:30
parent 1197549e5b
commit 1a42356f68
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -73,5 +73,6 @@ class Child:
self.pid = pid
self.child_fd = master
if stdin is not None:
os.close(stdin_read_fd)
fast_data_types.thread_write(stdin_write_fd, stdin)
return pid