diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-23 11:35:32 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-23 11:35:32 +0000 |
commit | 345ecf3711998c8792c075e5d1093ca6a872474c (patch) | |
tree | 3293bc724ccf0a1cda2a1b37d7a04eca2ff4cc9a /internal.h | |
parent | fe688f2d302e3e3f70fba4bc93223740d9826e8e (diff) | |
download | ruby-345ecf3711998c8792c075e5d1093ca6a872474c.tar.gz |
* internal.h (rb_execarg): add fd_dup2, fd_close, fd_open,
fd_dup2_child fields.
* process.c (EXEC_OPTION_DUP2): removed.
(EXEC_OPTION_CLOSE): removed.
(EXEC_OPTION_OPEN): removed.
(EXEC_OPTION_DUP2_CHILD): removed.
(mark_exec_arg): mark the new fields.
(check_exec_redirect1): change condition for default option.
(check_exec_redirect): take a struct rb_execarg argument.
use the new fields.
(rb_execarg_addopt): follow the check_exec_redirect change.
(check_exec_fds): use the new fields.
(save_redirect_fd): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal.h b/internal.h index ea0846c8f1..674525daf0 100644 --- a/internal.h +++ b/internal.h @@ -186,6 +186,10 @@ struct rb_execarg { pid_t pgroup_pgid; /* asis(-1), new pgroup(0), specified pgroup (0<V). */ VALUE rlimit_limits; /* Qfalse or [[rtype, softlim, hardlim], ...] */ mode_t umask_mask; + VALUE fd_dup2; + VALUE fd_close; + VALUE fd_open; + VALUE fd_dup2_child; int close_others_maxhint; VALUE env_modification; /* Qfalse or [[k1,v1], ...] */ VALUE chdir_dir; |