ruby-changes:7974
From: ko1 <ko1@a...>
Date: Wed, 24 Sep 2008 04:09:31 +0900 (JST)
Subject: [ruby-changes:7974] Ruby:r19497 (trunk): * signal.c (signal_exec): execute rb_eval_cmd() directly.
ko1 2008-09-24 04:09:11 +0900 (Wed, 24 Sep 2008) New Revision: 19497 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19497 Log: * signal.c (signal_exec): execute rb_eval_cmd() directly. Modified files: trunk/ChangeLog trunk/signal.c Index: ChangeLog =================================================================== --- ChangeLog (revision 19496) +++ ChangeLog (revision 19497) @@ -1,3 +1,7 @@ +Wed Sep 24 04:07:07 2008 Koichi Sasada <ko1@a...> + + * signal.c (signal_exec): execute rb_eval_cmd() directly. + Wed Sep 24 03:08:58 2008 Eric Hodel <drbrain@s...> * lib/uri/mailto.rb: fix indentation. Index: signal.c =================================================================== --- signal.c (revision 19496) +++ signal.c (revision 19497) @@ -565,13 +565,8 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/