mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
73c480a912
commit
de6d82f907
2 changed files with 5 additions and 26 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sun Mar 10 15:02:39 2013 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
|
* process.c (setup_communication_pipe): remove unused function.
|
||||||
|
it was unintentionally added r39683.
|
||||||
|
|
||||||
Wed Mar 6 00:30:40 2013 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
Wed Mar 6 00:30:40 2013 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
* tool/gen_ruby_tapset.rb: add tapset generator.
|
* tool/gen_ruby_tapset.rb: add tapset generator.
|
||||||
|
|
26
process.c
26
process.c
|
@ -1079,32 +1079,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
|
static void
|
||||||
before_exec(void)
|
before_exec(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue