diff options
Diffstat (limited to 'signal.c')
-rw-r--r-- | signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -976,7 +976,7 @@ trap_handler(VALUE *cmd, int sig) else { command = rb_check_string_type(*cmd); if (NIL_P(command) && SYMBOL_P(*cmd)) { - command = rb_id2str(SYM2ID(*cmd)); + command = rb_sym2str(*cmd); if (!command) rb_raise(rb_eArgError, "bad handler"); } if (!NIL_P(command)) { |