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