diff options
author | David Powell <djpowell@djpowell.net> | 2010-06-05 16:11:07 +0100 |
---|---|---|
committer | Stuart Halloway <stu@thinkrelevance.com> | 2010-07-09 15:02:42 -0400 |
commit | 7def88afe28221ad78f8d045ddbd87b5230cb03e (patch) | |
tree | a72045d0e8e0c2e3046b9370194744dcede52bc9 /src/jvm/clojure | |
parent | 4630d025d2101d13e626b56b3b2ba01950bd0ac9 (diff) |
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>
Diffstat (limited to 'src/jvm/clojure')
0 files changed, 0 insertions, 0 deletions