[前][次][番号順一覧][スレッド一覧]

ruby-changes:7966

From: ko1 <ko1@a...>
Date: Tue, 23 Sep 2008 20:37:45 +0900 (JST)
Subject: [ruby-changes:7966] Ruby:r19488 (trunk): * signal.c (signal_exec): fix to use rb_proc_call().

ko1	2008-09-23 20:37:23 +0900 (Tue, 23 Sep 2008)

  New Revision: 19488

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19488

  Log:
    * signal.c (signal_exec): fix to use rb_proc_call().

  Modified files:
    trunk/ChangeLog
    trunk/signal.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 19487)
+++ ChangeLog	(revision 19488)
@@ -1,3 +1,7 @@
+Tue Sep 23 20:24:41 2008  Koichi Sasada  <ko1@a...>
+
+	* signal.c (signal_exec): fix to use rb_proc_call().
+
 Tue Sep 23 20:06:46 2008  Yukihiro Matsumoto  <matz@r...>
 
 	* lib/rexml/formatters/pretty.rb (REXML::Formatters::Pretty#wrap):
Index: signal.c
===================================================================
--- signal.c	(revision 19487)
+++ signal.c	(revision 19488)
@@ -565,15 +565,13 @@
 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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]