089e49cdf4
Parallel does intercept and re-raise interrupts. This causes the status flag to return nil.
19 lines
332 B
Ruby
Executable file
19 lines
332 B
Ruby
Executable file
#!/usr/bin/env ruby
|
|
|
|
trap('INT') do |status|
|
|
effective_status = status ? status + 128 : 128
|
|
exit! effective_status
|
|
end
|
|
|
|
require 'mutant'
|
|
|
|
namespace =
|
|
if ARGV.include?('--zombie')
|
|
$stderr.puts('Running mutant zombified!')
|
|
Mutant.zombify
|
|
Zombie::Mutant
|
|
else
|
|
Mutant
|
|
end
|
|
|
|
Kernel.exit(namespace::CLI.run(ARGV))
|