lib/autobuild/subcommand.rb in autobuild-1.7.5 vs lib/autobuild/subcommand.rb in autobuild-1.7.6
- old
+ new
@@ -256,10 +256,14 @@
if !input_streams.empty?
pwrite.close
$stdin.reopen(pread)
end
- exec(*command, :close_others => false)
+ if RUBY_VERSION < "1.9"
+ exec(*command)
+ else
+ exec(*command, :close_others => false)
+ end
rescue Errno::ENOENT
cwrite.write([CONTROL_COMMAND_NOT_FOUND].pack('I'))
exit(100)
rescue Interrupt
cwrite.write([CONTROL_INTERRUPT].pack('I'))