summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-05 12:59:40 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-05 12:59:40 +0000
commitad5bfed17c7cfe9728ee4726a21cd8783756cd61 (patch)
treebbac9792c34dd52a85478b8bb8b2bb7fc51ee77f /include
parent2073258a7d192e8d2bc853e10464a7a5fcac8f2d (diff)
* process.c (rb_exec_arg_fixup): allocate a temporary buffer for
run_exec_dup2 here because it should be async-signal-safe. (run_exec_dup2): use the temporary buffer. (run_exec_dup2_tmpbuf_size): new function. * include/ruby/intern.h (rb_exec_arg): add dup2_tmpbuf field. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/intern.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h
index a3d583c2ea..b9b682d906 100644
--- a/include/ruby/intern.h
+++ b/include/ruby/intern.h
@@ -598,6 +598,7 @@ struct rb_exec_arg {
VALUE argv_buf;
VALUE envp_str;
VALUE envp_buf;
+ VALUE dup2_tmpbuf;
};
int rb_proc_exec_n(int, VALUE*, const char*);
int rb_proc_exec(const char*);