lib/scissor/writer.rb in scissor-0.0.23 vs lib/scissor/writer.rb in scissor-0.0.24
- old
+ new
@@ -116,9 +116,10 @@
def run_command(cmd)
logger.debug("run_command: #{cmd}")
result = ''
status = Open4.popen4(cmd) do |pid, stdin, stdout, stderr|
+ stdin.close
logger.debug(stderr.read)
result = stdout.read
end
if status.exitstatus != 0