diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-23 11:37:23 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-23 11:37:23 +0000 |
commit | 445e26fb00e8ce7e9f1785579abfd5662880f3f1 (patch) | |
tree | c4204055f5018d0fc1bec425d7520dc008ddea61 /signal.c | |
parent | 83abcf5a2c174bb76f258384d3a8f90cc5014928 (diff) | |
download | ruby-445e26fb00e8ce7e9f1785579abfd5662880f3f1.tar.gz |
* signal.c (signal_exec): fix to use rb_proc_call().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r-- | signal.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -565,15 +565,13 @@ sigpipe(int sig) static void signal_exec(VALUE cmd, int safe, int sig) { - rb_proc_t *proc; - VALUE signum = INT2FIX(sig); + VALUE signumary = rb_ary_new3(1, INT2FIX(sig)); if (TYPE(cmd) == T_STRING) { - rb_eval_cmd(cmd, rb_ary_new3(1, signum), safe); + rb_eval_cmd(cmd, signumary, safe); return; } - GetProcPtr(cmd, proc); - vm_invoke_proc(GET_THREAD(), proc, proc->block.self, 1, &signum, 0); + rb_proc_call(cmd, signumary); } void |