summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-10 06:04:51 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-10 06:04:51 +0000
commitde6d82f90703bde85bfd419aeb343ef0fd94044b (patch)
treec79f2611f5785773dc3920e81436736767258e26 /process.c
parent73c480a9124cf764c4f64237a319ec13fd9a909a (diff)
* process.c (setup_communication_pipe): remove unused function.
it was unintentionally added r39683. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/process.c b/process.c
index 92966f1bb2..f5ccbbe1d2 100644
--- a/process.c
+++ b/process.c
@@ -1080,32 +1080,6 @@ before_exec_non_async_signal_safe(void)
}
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();