Skip to content
This repository has been archived by the owner on Nov 2, 2019. It is now read-only.

blocks communicating with the child process #9

Closed
ancillaryCode opened this issue Apr 15, 2014 · 2 comments
Closed

blocks communicating with the child process #9

ancillaryCode opened this issue Apr 15, 2014 · 2 comments

Comments

@ancillaryCode
Copy link

The reads from sdtin and stderr of child sequentially. The problem is this can block if the child is writing to the other fd. As far as I can tell, the correct solution is to use the "communicate" method off the proc object. I'd submit a patch but my employer has wrapped a bunch of bureaucracy around open source contributions.

@whitequark
Copy link
Owner

Thanks, I'll take a look. If attribution is a problem for you, you can mail a patch to [email protected] and I'll commit it under my name.

@TheSpyder
Copy link
Collaborator

Took a look at the python docs, and it seems easy enough. I ran a few tests and it still works, so...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants