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:
parent
8f5f6fc22b
commit
089e49cdf4
1 changed files with 2 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue