diff --git a/ChangeLog b/ChangeLog index 84bfa9e25a..6af40237e6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Jun 9 09:00:58 2012 Tanaka Akira + + * process.c (rb_proc_exec): call before_exec() here addition to + rb_exec_err. + Sat Jun 9 08:30:52 2012 Nobuyoshi Nakada * thread_pthread.c (ruby_init_stack): use stack info if possible. diff --git a/process.c b/process.c index 988432b02f..adaa20a46e 100644 --- a/process.c +++ b/process.c @@ -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; }