forked from amoffat/sh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added capability for "Direct Piping" - that is, transferring data bet…
…ween 2 processes directly using OS pipes and connecting them with dup2, instead of buffering the output of process 1 into python memory before sending to process 2. This is in response to issue amoffat#119 amoffat#119 The effect can be enabled by setting call arg _piping="direct" on the inner process. I had issues with getting 'Input/Output error reading stdin' from dd, until I set _tty_out=False. In the code I have therefore set _tty_out to False when _piping == "direct". This has caused 3 of the unit tests to fail. test2.py on my PC shows 13s vs 0.5s performance difference
- Loading branch information
Showing
1 changed file
with
24 additions
and
12 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