sync the writer stream

This commit is contained in:
David Dollar
2012-01-17 22:21:16 -05:00
parent d961a32cfe
commit 2abddb42b3

View File

@@ -31,6 +31,7 @@ private
reader, writer = IO.pipe
pid = fork do
trap("INT", "IGNORE")
writer.sync = true
$stdout.reopen writer
$stderr.reopen writer
reader.close