* process.c (rb_proc_exec): call before_exec() here addition to

rb_exec_err.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2012-06-09 00:01:58 +00:00
parent c4c79e256b
commit 0ec4ae7c8e
2 changed files with 8 additions and 1 deletions

View file

@ -1174,7 +1174,9 @@ proc_exec_sh(const char *str, VALUE envp_str)
int
rb_proc_exec(const char *str)
{
int ret = proc_exec_sh(str, Qfalse);
int ret;
before_exec();
ret = proc_exec_sh(str, Qfalse);
preserving_errno(after_exec());
return ret;
}