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

ruby-changes:27642

From: kosaki <ko1@a...>
Date: Sun, 10 Mar 2013 15:05:04 +0900 (JST)
Subject: [ruby-changes:27642] kosaki:r39694 (trunk): * process.c (setup_communication_pipe): remove unused function.

kosaki	2013-03-10 15:04:51 +0900 (Sun, 10 Mar 2013)

  New Revision: 39694

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

  Log:
    * process.c (setup_communication_pipe): remove unused function.
      it was unintentionally added r39683.

  Modified files:
    trunk/ChangeLog
    trunk/process.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39693)
+++ ChangeLog	(revision 39694)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Mar 10 15:02:39 2013  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* process.c (setup_communication_pipe): remove unused function.
+	  it was unintentionally added r39683.
+
 Wed Mar  6 00:30:40 2013  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* tool/gen_ruby_tapset.rb: add tapset generator.
Index: process.c
===================================================================
--- process.c	(revision 39693)
+++ process.c	(revision 39694)
@@ -1080,32 +1080,6 @@ before_exec_non_async_signal_safe(void) https://github.com/ruby/ruby/blob/trunk/process.c#L1080
 }
 
 static void
-setup_communication_pipe(void)
-{
-#if USE_SLEEPY_TIMER_THREAD
-	/* communication pipe with timer thread and signal handler */
-	if (timer_thread_pipe_owner_process != getpid()) {
-	    if (timer_thread_pipe[0] != -1) {
-		/* close pipe of parent process */
-		close_communication_pipe();
-	    }
-
-	    err = rb_cloexec_pipe(timer_thread_pipe);
-	    if (err != 0) {
-		rb_bug_errno("thread_timer: Failed to create communication pipe for timer thread", errno);
-	    }
-            rb_update_max_fd(timer_thread_pipe[0]);
-            rb_update_max_fd(timer_thread_pipe[1]);
-	    set_nonblock(timer_thread_pipe[0]);
-	    set_nonblock(timer_thread_pipe[1]);
-
-	    /* validate pipe on this process */
-	    timer_thread_pipe_owner_process = getpid();
-	}
-#endif /* USE_SLEEPY_TIMER_THREAD */
-}
-
-static void
 before_exec(void)
 {
     before_exec_non_async_signal_safe();

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

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