ruby-cvs:23595
From: akr ruby-lang.org
Date: Sun, 11 May 2008 13:15:30 +0900 (JST)
Subject: [ruby-cvs:23595] Ruby:r16355 (trunk): * thread.c (thread_cleanup_func_before_exec): extracted from
akr 2008-05-11 13:15:29 +0900 (Sun, 11 May 2008)
New Revision: 16355
Modified files:
trunk/ChangeLog
trunk/include/ruby/intern.h
trunk/io.c
trunk/process.c
trunk/thread.c
Log:
* thread.c (thread_cleanup_func_before_exec): extracted from
thread_cleanup_func not to touch pthread data.
pthread_cond_destroy in forked process may cause deadlock on
Debian GNU/Linux Etch on x86, x86-64 and IA64.
this doesn't cause resource leak because the process will exec soon.
(terminate_atfork_before_exec_i): defined.
(rb_thread_atfork_before_exec): defined.
* include/ruby/intern.h (rb_thread_atfork_before_exec): declared.
* process.c (rb_exec_atfork): call rb_thread_atfork_before_exec
instead of rb_thread_atfork.
* io.c (popen_exec): call rb_thread_atfork_before_exec instead of
rb_thread_atfork.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16355&r2=16354&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/thread.c?r1=16355&r2=16354&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/io.c?r1=16355&r2=16354&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/process.c?r1=16355&r2=16354&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/intern.h?r1=16355&r2=16354&diff_format=u