Skip to content

Commit c27de64

Browse files
committed
Fix use of vm_watch_signal as it now passes signo
1 parent 6026ead commit c27de64

File tree

1 file changed

+2
-2
lines changed
  • src/main/ruby/truffleruby/core

1 file changed

+2
-2
lines changed

src/main/ruby/truffleruby/core/main.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def to_s
7373
# Use vm_watch_signal directly as those should be the 'DEFAULT' handlers
7474

7575
if Truffle::Boot.get_option('platform-handle-interrupt')
76-
Primitive.vm_watch_signal 'INT', -> do
76+
Primitive.vm_watch_signal 'INT', ->(_) do
7777
if Truffle::Boot.get_option('backtraces-on-interrupt')
7878
puts 'Interrupting...'
7979
show_backtraces.call
@@ -84,7 +84,7 @@ def to_s
8484
end
8585

8686
if Truffle::Boot.get_option('backtraces-sigalrm')
87-
Primitive.vm_watch_signal 'ALRM', -> do
87+
Primitive.vm_watch_signal 'ALRM', ->(_) do
8888
show_backtraces.call
8989
end
9090
end

0 commit comments

Comments
 (0)