Skip to content

Commit f4b4dda

Browse files
MasanoriOnishiko1
authored andcommitted
Enable trap function accept Integer
1 parent 697414d commit f4b4dda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/debug/session.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2524,7 +2524,7 @@ def daemon(*args)
25242524

25252525
module TrapInterceptor
25262526
def trap sig, *command, &command_proc
2527-
case sig&.to_sym
2527+
case sig&.to_s&.to_sym
25282528
when :INT, :SIGINT
25292529
if defined?(SESSION) && SESSION.active? && SESSION.intercept_trap_sigint?
25302530
return SESSION.save_int_trap(command.empty? ? command_proc : command.first)

0 commit comments

Comments
 (0)