1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
ko1 2008-09-23 11:37:23 +00:00
parent 83abcf5a2c
commit 445e26fb00
2 changed files with 7 additions and 5 deletions

View file

@ -1,3 +1,7 @@
Tue Sep 23 20:24:41 2008 Koichi Sasada <ko1@atdot.net>
* signal.c (signal_exec): fix to use rb_proc_call().
Tue Sep 23 20:06:46 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/rexml/formatters/pretty.rb (REXML::Formatters::Pretty#wrap):

View file

@ -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