Trap INT in executable
Traping INT just after lauch, even before requireing library should allow clean exits at all stages. Closes #44
This commit is contained in:
parent
75409b0199
commit
745c82534b
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
trap('INT') do |status|
|
||||
exit! 128+status
|
||||
end
|
||||
|
||||
require 'mutant'
|
||||
|
||||
namespace =
|
||||
|
|
Loading…
Add table
Reference in a new issue