[systemd-devel] [PATCH v4 1/2] Move handling of sysv initscripts to a generator

Lennart Poettering lennart at poettering.net
Fri Jun 6 07:12:40 PDT 2014


On Sat, 31.05.14 23:29, Thomas H.P. Andersen (phomes at gmail.com) wrote:

> +const char *arg_dest = "/tmp";
> +
> +static LookupPaths lp;
> +static Hashmap *all_services;

Small addendum: we try to avoid static vars. WOuld be great to pass the
latter *both* through as params. We just try though, sometimes we take the
shortcut, but if it is easy we avoid static vars, and i think
this one of those cases where it is easy...

The arg_* vars can stay that way, they are kinda global process
parameters anyway, and we have them static in pretty much all our tools
like this...

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list