lib/autobuild/subcommand.rb in autobuild-0.6 vs lib/autobuild/subcommand.rb in autobuild-0.6.2
- old
+ new
@@ -23,9 +23,12 @@
input_streams = command.collect { |o| $1 if o =~ /^\<(.+)/ }.compact
command.reject! { |o| o =~ /^\<(.+)/ }
status = File.open(logname, "a") do |logfile|
+ logfile.puts command.join(" ")
+ logfile.flush
+
pread, pwrite = IO.pipe # to feed subprocess stdin
cread, cwrite = IO.pipe # to control that exec goes well
pid = fork {
cwrite.sync = true