diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-23 06:23:35 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-23 06:23:35 +0000 |
commit | b25b9569e55ece9e7a4f3971b412d67ff804c504 (patch) | |
tree | f51248712f772a7d352aacf366fca91f02b41dd9 /internal.h | |
parent | f527ad625d39eac59dc687ae11f90cee107d4f0a (diff) |
* internal.h (rb_execarg): add chdir_given and chdir_dir fields.
* process.c (EXEC_OPTION_CHDIR): removed.
(mark_exec_arg): mark chdir_dir field.
(rb_execarg_addopt): update the new fields, instead of options array.
(rb_execarg_run_options): use the new fields.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 140df9894f..b6c7dda7a9 100644 --- a/internal.h +++ b/internal.h @@ -182,9 +182,11 @@ struct rb_execarg { unsigned unsetenv_others_do : 1; unsigned close_others_given : 1; unsigned close_others_do : 1; + unsigned chdir_given : 1; pid_t pgroup_pgid; /* asis(-1), new pgroup(0), specified pgroup (0<V). */ mode_t umask_mask; int close_others_maxhint; + VALUE chdir_dir; }; /* argv_str contains extra two elements. |