summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authorktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-30 13:17:45 (GMT)
committerktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-30 13:17:45 (GMT)
commit3b895e8355b06facb4e80b27e527d560af4fd65a (patch)
treeda4823652a6806ff4bd6b3df671a9ad0da1de252 /signal.c
parent00b040b8d584e6c234437d36ab17c0b714b9a893 (diff)
* process.c (rlimit_resource_type, rlimit_resource_value):
get rid of inadvertent dynamic symbol pin-down. * re.c (match_backref_number): ditto. * signal.c (esignal_init, rb_f_kill, trap_signm): ditto. * transcode.c (econv_opts): ditto. * vm_trace.c (symbol2event_flag): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/signal.c b/signal.c
index 01f9686..bf1b5d3 100644
--- a/signal.c
+++ b/signal.c
@@ -301,7 +301,7 @@ esignal_init(int argc, VALUE *argv, VALUE self)
}
else {
int len = sizeof(signame_prefix);
- signm = SYMBOL_P(sig) ? rb_id2name(SYM2ID(sig)) : StringValuePtr(sig);
+ signm = SYMBOL_P(sig) ? RSTRING_PTR(rb_sym2str(sig)) : StringValuePtr(sig);
if (strncmp(signm, signame_prefix, len) == 0) {
signm += len;
len = 0;
@@ -408,7 +408,7 @@ rb_f_kill(int argc, const VALUE *argv)
break;
case T_SYMBOL:
- s = rb_id2name(SYM2ID(argv[0]));
+ s = RSTRING_PTR(rb_sym2str(argv[0]));
if (!s) rb_raise(rb_eArgError, "bad signal");
goto str_signal;
@@ -1044,7 +1044,7 @@ trap_signm(VALUE vsig)
break;
case T_SYMBOL:
- s = rb_id2name(SYM2ID(vsig));
+ s = RSTRING_PTR(rb_sym2str(vsig));
if (!s) rb_raise(rb_eArgError, "bad signal");
goto str_signal;