mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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/trunk@30350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
522c538e93
commit
402402741d
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
Sat Dec 25 15:08:08 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* 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@ruby-lang.org>
|
||||
|
||||
* io.c (rb_io_extract_encoding_option): accept Encoding object as
|
||||
|
|
|
@ -156,6 +156,8 @@ chfunc(void *data, char *errbuf, size_t errbuf_len)
|
|||
return -1; \
|
||||
} while (0)
|
||||
|
||||
rb_thread_atfork_before_exec();
|
||||
|
||||
/*
|
||||
* Set free from process group and controlling terminal
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue