-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Connect stdin to /dev/null when tty=False (backwards incompatible*)
Recently I ran into several external commands whose output was being captured and thus not visible, but which nevertheless rendered an interactive prompt, waiting for a response on standard input (which I wasn't providing because I never saw the interactive prompt :-). The option to connect stdin and /dev/null was never available in executor, however given the recent addition of the `tty' option it seemed logical to combine the two. Two changes in this commit backwards incompatible: 1. The standard input stream of external commands was never connected to /dev/null before and this is changing without an explicit opt-in or opt-out mechanism. I'm making this choice because I believe it to be the only sane approach. 2. The interface of the CachedStream class has changed even though this is a documented, externally available class. However I don't actually see anyone using CachedStream outside of the executor project, so in the grand scheme of things this is a minor thing (99% of users will never even notice, I'm guessing).
- Loading branch information
Showing
2 changed files
with
72 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters