Fix exit status generation on intercepted interrrupts

Parallel does intercept and re-raise interrupts. This causes the status
flag to return nil.
This commit is contained in:
Markus Schirp 2014-10-02 20:11:27 +00:00
parent 8f5f6fc22b
commit 089e49cdf4

View file

@ -1,7 +1,8 @@
#!/usr/bin/env ruby
trap('INT') do |status|
exit! 128 + status
effective_status = status ? status + 128 : 128
exit! effective_status
end
require 'mutant'