From 29f5911cf54536f06697aea6e0a5c98977c536e9 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 23 Sep 2008 19:09:11 +0000 Subject: [PATCH] * signal.c (signal_exec): execute rb_eval_cmd() directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ signal.c | 9 ++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index fe8eefa844..3a980a2b65 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Sep 24 04:07:07 2008 Koichi Sasada + + * signal.c (signal_exec): execute rb_eval_cmd() directly. + Wed Sep 24 03:08:58 2008 Eric Hodel * lib/uri/mailto.rb: fix indentation. diff --git a/signal.c b/signal.c index 34a8175a9d..027a117c15 100644 --- a/signal.c +++ b/signal.c @@ -565,13 +565,8 @@ sigpipe(int sig) static void signal_exec(VALUE cmd, int safe, int sig) { - VALUE signumary = rb_ary_new3(1, INT2FIX(sig)); - - if (TYPE(cmd) == T_STRING) { - rb_eval_cmd(cmd, signumary, safe); - return; - } - rb_proc_call(cmd, signumary); + VALUE signum = INT2NUM(sig); + rb_eval_cmd(cmd, rb_ary_new3(1, signum), safe); } void