Skip to content

Commit

Permalink
Merge pull request #136 from qmx/popen_bug
Browse files Browse the repository at this point in the history
fix popen3 hang bug
  • Loading branch information
lance committed Jul 25, 2012
2 parents 1527d77 + 8f20352 commit 138a1aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/awestruct/handlers/base_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def to_chain
def execute_shell(command, input=nil)
Open3.popen3(command) do |stdin, stdout, _|
stdin.puts input unless input.nil?
stdin.close
out = stdout.read
end
rescue Errno::EPIPE
Expand Down

0 comments on commit 138a1aa

Please sign in to comment.