This was previously set after the hook and only if auxargs were present.
Now always provide it if possible.
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
Differential D6546
exec: Provide execpath in imgp for the process_exec hook. bdrewery on May 24 2016, 9:32 PM. Authored by Tags None Referenced Files
Subscribers
Details
This was previously set after the hook and only if auxargs were present. MFC after: 2 weeks Used it in filemon, rather than vn_fullpath(9), and confirmed that the value
Diff Detail
Event TimelineComment Actions Can we compromise with this and recalculate after the interpreter is known, if one is used? At least for my use case I don't mind getting the script's path as execpath in the hook instead of the interpreter path. Comment Actions I do not mind but I would prefer that
2 is optional. Comment Actions I'm going to put this off for now and explore the namecache fix discussed a few weeks ago briefly on IRC. Comment Actions For interpreted it will go back and go over the execpath code I have. Couldn't I just cleanup execpath before the goto interpret and the code I have mostly works? I assume the process_exec hook is not called until the actual interpreter is handled in the activator. Comment Actions Yeah, the process_exec hook is called from exec_new_vmspace, after interpreter is looped and set into imgp->vp. So I should just be able to recalculate the execpath in this case. I think a downside is that vn_fullpath may be called on the first pass and its result thrown away. Comment Actions
|