Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
read stdout and stderr simultanously from separate threads to prevent…
… stderr filling the buffer and hanging the process removed stray println use clojure.java.io to copy streams, avoiding byte-at-a-time copying added :inenc option, specifying the input character set renamed :out input option to :outenc changed default encoding to 'platform default encoding'. This matches how we handle *out*. It is much more likely that command-line tools used by sh use platform default encoding. Windows CRT barely supports UTF-8 for example. write to stdin from a separate thread to prevent stdout blocking before we write anything Added support for passing a byte array to :in Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
- Loading branch information
1 parent
4630d02
commit 7def88a
Showing
1 changed file
with
51 additions
and
28 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