Skip to content

Commit

Permalink
ignore EPIPE only
Browse files Browse the repository at this point in the history
  • Loading branch information
shinh committed Apr 11, 2010
1 parent e4e320e commit ad79d8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion execute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ def execute(type, filename, testcases)
if ext == 'sed' && i.empty?
i = "\n"
end
pipe.write(i) rescue ()
begin
pipe.write(i)
rescue Errno::EPIPE
end
pipe.close_write
o = pipe.read
case type
Expand Down

0 comments on commit ad79d8c

Please sign in to comment.