ruby-changes:18327
From: kosaki <ko1@a...>
Date: Sat, 25 Dec 2010 14:31:10 +0900 (JST)
Subject: [ruby-changes:18327] Ruby:r30350 (trunk): * ext/pty/pty.c (chfunc): Added rb_thread_atfork_before_exec().
kosaki 2010-12-25 14:31:04 +0900 (Sat, 25 Dec 2010) New Revision: 30350 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30350 Log: * ext/pty/pty.c (chfunc): Added rb_thread_atfork_before_exec(). We must reinitialize GVL when new process creation. Otherwise we may meet an insane deadlock. [Bug #4121][ruby-dev:42686] Modified files: trunk/ChangeLog trunk/ext/pty/pty.c Index: ChangeLog =================================================================== --- ChangeLog (revision 30349) +++ ChangeLog (revision 30350) @@ -1,3 +1,9 @@ +Sat Dec 25 15:08:08 2010 KOSAKI Motohiro <kosaki.motohiro@g...> + + * ext/pty/pty.c (chfunc): Added rb_thread_atfork_before_exec(). + We must reinitialize GVL at new process creation. Otherwise + we may meet an insane deadlock. [Bug#4121][ruby-dev:42686] + Sat Dec 25 14:27:09 2010 Nobuyoshi Nakada <nobu@r...> * io.c (rb_io_extract_encoding_option): accept Encoding object as Index: ext/pty/pty.c =================================================================== --- ext/pty/pty.c (revision 30349) +++ ext/pty/pty.c (revision 30350) @@ -156,6 +156,8 @@ return -1; \ } while (0) + rb_thread_atfork_before_exec(); + /* * Set free from process group and controlling terminal */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/