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:
Markus Schirp 2013-06-21 23:54:32 +02:00
parent 75409b0199
commit 745c82534b

View file

@ -1,5 +1,9 @@
#!/usr/bin/env ruby
trap('INT') do |status|
exit! 128+status
end
require 'mutant'
namespace =