summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-25 09:37:26 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-25 09:37:26 +0000
commit6223c55b579b3ca9355ac6b551a749e4ffe5146c (patch)
treec5db4175005d526fcddaa2797a983cd8820f371b /ext
parent5be97645b434a729c5149cb69477e057f1009051 (diff)
merges r30350 from trunk into ruby_1_9_2.
-- * 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] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/pty/pty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c
index 1d7aac6817..800e75959b 100644
--- a/ext/pty/pty.c
+++ b/ext/pty/pty.c
@@ -166,6 +166,8 @@ chfunc(void *data)
struct exec_info arg;
int status;
+ rb_thread_atfork_before_exec();
+
/*
* Set free from process group and controlling terminal
*/