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

ruby-changes:23970

From: akr <ko1@a...>
Date: Sun, 10 Jun 2012 21:31:49 +0900 (JST)
Subject: [ruby-changes:23970] akr:r36021 (trunk): * process.c (rb_exec_without_timer_thread): renamed from rb_exec_err.

akr	2012-06-10 21:31:40 +0900 (Sun, 10 Jun 2012)

  New Revision: 36021

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

  Log:
    * process.c (rb_exec_without_timer_thread): renamed from rb_exec_err.
      (rb_exec_err): new stub function to call
      rb_exec_without_timer_thread.
      (rb_f_exec): call rb_exec_without_timer_thread.
      (rb_exec): call rb_exec_without_timer_thread.

  Modified files:
    trunk/ChangeLog
    trunk/process.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 36020)
+++ ChangeLog	(revision 36021)
@@ -1,3 +1,11 @@
+Sun Jun 10 21:30:11 2012  Tanaka Akira  <akr@f...>
+
+	* process.c (rb_exec_without_timer_thread): renamed from rb_exec_err.
+	  (rb_exec_err): new stub function to call
+	  rb_exec_without_timer_thread.
+	  (rb_f_exec): call rb_exec_without_timer_thread.
+	  (rb_exec): call rb_exec_without_timer_thread.
+
 Sun Jun 10 21:13:10 2012  Tanaka Akira  <akr@f...>
 
 	* process.c (rb_fork): call rb_fork_internal instead of rb_fork_err.
Index: process.c
===================================================================
--- process.c	(revision 36020)
+++ process.c	(revision 36021)
@@ -1975,6 +1975,8 @@
     rb_exec_arg_fixup(earg);
 }
 
+static int rb_exec_without_timer_thread(const struct rb_exec_arg *e, char *errmsg, size_t errmsg_buflen);
+
 /*
  *  call-seq:
  *     exec([env,] command... [,options])
@@ -2029,7 +2031,7 @@
     rb_exec_arg_prepare(&earg, argc, argv);
 
 #ifdef __MacOS_X__
-    rb_exec_err(&earg, errmsg, sizeof(errmsg));
+    rb_exec_without_timer_thread(&earg, errmsg, sizeof(errmsg));
 #else
     rb_exec_async_signal_safe(&earg, errmsg, sizeof(errmsg));
 #endif
@@ -2649,8 +2651,8 @@
     return -1;
 }
 
-int
-rb_exec_err(const struct rb_exec_arg *e, char *errmsg, size_t errmsg_buflen)
+static int
+rb_exec_without_timer_thread(const struct rb_exec_arg *e, char *errmsg, size_t errmsg_buflen)
 {
     int ret;
     before_exec_non_async_signal_safe(); /* async-signal-safe if forked_child is true */
@@ -2660,11 +2662,17 @@
 }
 
 int
+rb_exec_err(const struct rb_exec_arg *e, char *errmsg, size_t errmsg_buflen)
+{
+    return rb_exec_without_timer_thread(e, errmsg, errmsg_buflen);
+}
+
+int
 rb_exec(const struct rb_exec_arg *e)
 {
 #if !defined FD_CLOEXEC && !defined HAVE_SPAWNV
     char errmsg[80] = { '\0' };
-    int ret = rb_exec_err(e, errmsg, sizeof(errmsg));
+    int ret = rb_exec_without_timer_thread(e, errmsg, sizeof(errmsg));
     preserving_errno(
 	if (errmsg[0]) {
 	    fprintf(stderr, "%s\n", errmsg);
@@ -2677,7 +2685,7 @@
     );
     return ret;
 #else
-    return rb_exec_err(e, NULL, 0);
+    return rb_exec_without_timer_thread(e, NULL, 0);
 #endif
 }
 

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

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