Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix stdin on windows #16

Merged
merged 1 commit into from
Mar 10, 2017
Merged

fix stdin on windows #16

merged 1 commit into from
Mar 10, 2017

Conversation

mmerickel
Copy link
Member

@mmerickel mmerickel commented Mar 10, 2017

As long as we're using multiprocessing this appears to be the only way to forward stdin to the child process on windows.

The core of the issue is that stdin is coupled to the parent process and cannot be duplicated to the child unless the child was created with stdin... and multiprocessing does not do this. SO YEAH, instead I'm duplicating my own pipe and spawning a thread that reads from stdin and sends it to the pipe. Sigh.

Anyway I tested this on windows 7 and windows 10 in environments where I was able to reproduce the issue and it seems to be working now.

@mmerickel mmerickel force-pushed the pipe-forwarder branch 2 times, most recently from 1822c2f to cc3c446 Compare March 10, 2017 08:40
@mmerickel mmerickel mentioned this pull request Mar 10, 2017
@mmerickel mmerickel merged commit 5861bf1 into master Mar 10, 2017
@mmerickel mmerickel deleted the pipe-forwarder branch March 10, 2017 09:12
mmerickel added a commit that referenced this pull request Mar 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant