aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-20 08:28:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-20 08:28:03 +0000
commitbf6575ef62b4521d6c1d45371372dc1c1e74f18e (patch)
treeddffa8580a98a94b29e52c079e8d5905ab9cc1ff /io.c
parentee9e5a6ea87fb0365a939639d027ade3eee93cb1 (diff)
downloadruby-bf6575ef62b4521d6c1d45371372dc1c1e74f18e.tar.gz
* io.c (popen_exec), process.c (rb_spawn): stop other threads before
exec. [ruby-core:08262] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io.c b/io.c
index fa63537ab5..944a4f3749 100644
--- a/io.c
+++ b/io.c
@@ -3110,6 +3110,7 @@ popen_exec(void *pp)
struct popen_arg *p = (struct popen_arg*)pp;
int fd;
+ rb_thread_atfork();
popen_redirect(p);
for (fd = 3; fd < NOFILE; fd++) {
#ifdef FD_CLOEXEC