[Nix-dev] Make wrappers be binaries instead of shell scripts?
Mateusz Kowalczyk
fuuzetsu at fuuzetsu.co.uk
Tue Nov 18 16:39:35 CET 2014
On 11/18/2014 01:32 PM, Wout Mertens wrote:
> Hi all,
>
> I'm wondering if it wouldn't be better to make the application wrapper
> scripts generated by makeWrapper be binaries that do the environment
> massaging and config in binary code before exec() ing the wrapped program.
>
> The advantages would be that the wrapper itself loads very fast since all
> the shell init and shell parsing is skipped. You also get precise control
> over the execv() call or other desired factors.
>
> The disadvantages are that you can't read what a wrapper does and the
> wrapper file is bigger (about 4KB in my tests for a simple execv()).
>
> Thoughts?
>
> Wout.
>
>
As long as it's optional: debugging wrappers does happen and if it's
binary then there's no hope.
--
Mateusz K.
More information about the nix-dev
mailing list