Skip to content

Commit

Permalink
Preventing SIGINT from killing foreman run directly
Browse files Browse the repository at this point in the history
  • Loading branch information
dgouldin committed Nov 7, 2014
1 parent 876354f commit d0fbc51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/foreman/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ def run(*args)
error "command not found: #{args.first}"
end
end
trap("INT") do
Process.kill(:INT, pid)
end
Process.wait(pid)
exit $?.exitstatus
rescue Interrupt
Expand Down

0 comments on commit d0fbc51

Please sign in to comment.