Skip to content

Commit 03529c4

Browse files
author
dnolen
committed
flush immediately when forwarding Node process out & err
1 parent 481efe0 commit 03529c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/clojure/cljs/repl/node.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@
8686
(try
8787
(let [len (.read in buf)]
8888
(when-not (neg? len)
89-
(.write out buf 0 len)))
89+
(.write out buf 0 len)
90+
(.flush out)))
9091
(catch IOException e
9192
(when (and (.isAlive proc) (not (.contains (.getMessage e) "Stream closed")))
9293
(.printStackTrace e *err*))))

0 commit comments

Comments
 (0)