diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-25 10:22:48 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-25 10:22:48 +0000 |
commit | c9958d6ab46bb5562dbb67fad116b176a0fba9fc (patch) | |
tree | f041ff21d4ad07e0e221995d933ee7ab12bf1e64 | |
parent | 1b40391d3d41ed361bae41896315e18fc77ba759 (diff) | |
download | ruby-c9958d6ab46bb5562dbb67fad116b176a0fba9fc.tar.gz |
* io.c (pipe_open): Added rb_thread_atfork(). We must reinitialize
GVL at new process creation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | io.c | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Sat Dec 25 20:01:40 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * io.c (pipe_open): Added rb_thread_atfork(). We must reinitialize + GVL at new process creation. + Sat Dec 25 18:26:55 2010 Tanaka Akira <akr@fsij.org> * ext/socket/option.c (inspect_ipv6_mreq): new function to inspect @@ -5072,6 +5072,7 @@ pipe_open(struct rb_exec_arg *eargp, VALUE prog, const char *modestr, int fmode, fflush(stdin); /* is it really needed? */ pid = rb_fork(&status, 0, 0, Qnil); if (pid == 0) { /* child */ + rb_thread_atfork(); popen_redirect(&arg); rb_io_synchronized(RFILE(orig_stdout)->fptr); rb_io_synchronized(RFILE(orig_stderr)->fptr); |