Skip to content

Commit

Permalink
Merge pull request #700 from maverickwoo/fix_688
Browse files Browse the repository at this point in the history
Trap PIPE only when platform supports it; fix #688
  • Loading branch information
jneen authored Jul 6, 2017
2 parents cd74c6c + c46f01b commit 4a7a9f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/rougify
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ require 'pathname'
ROOT_DIR = Pathname.new(__FILE__).dirname.parent
load ROOT_DIR.join('lib/rouge.rb')
load ROOT_DIR.join('lib/rouge/cli.rb')
Signal.trap('SIGPIPE', 'SYSTEM_DEFAULT')
Signal.trap('PIPE', 'SYSTEM_DEFAULT') if Signal.list.include? 'PIPE'

begin
Rouge::CLI.parse(ARGV).run
Expand Down

0 comments on commit 4a7a9f2

Please sign in to comment.