From 70232e400cae3509b6b816e3c8beed8be6f55dd7 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 6 Jun 2012 11:49:30 +0000 Subject: * process.c (proc_exec_v): don't call dln_find_exe_r here because it is not async-signal-safe and proc_exec_v is called in a child process. command_abspath field of rb_exec_arg. (rb_exec_fillarg): call dln_find_exe_r and set command_abspath. (rb_exec_err): Give the absolute path of the invoking command for proc_exec_v, instead of the command name. * internal.h: add command_abspath field for rb_exec_arg. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'internal.h') diff --git a/internal.h b/internal.h index 6a988c95c6..9ef4fba661 100644 --- a/internal.h +++ b/internal.h @@ -167,6 +167,7 @@ struct rb_exec_arg { } sh; struct { VALUE command_name; + VALUE command_abspath; /* full path string or nil */ VALUE argv_str; VALUE argv_buf; } cmd; -- cgit v1.2.3