X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fmain.c;fp=src%2Fmain.c;h=738db6c264e94abd5e3e772e8c682163a33d62b7;hb=5d6b158473100a7a85e790f8ead0b826baa13b5e;hp=94e6ec63ccebd817b722cea2b09f6731e03d15f5;hpb=a6927d7ffc18c51fbb9940f5f1e89f5c7695ed63;p=elogind.git diff --git a/src/main.c b/src/main.c index 94e6ec63c..738db6c26 100644 --- a/src/main.c +++ b/src/main.c @@ -1138,7 +1138,7 @@ int main(int argc, char *argv[]) { bool reexecute = false; const char *shutdown_verb = NULL; dual_timestamp initrd_timestamp = { 0ULL, 0ULL }; - char systemd[] = "systemd"; + static char systemd[] = "systemd"; bool is_reexec = false; int j; bool loaded_policy = false; @@ -1169,9 +1169,9 @@ int main(int argc, char *argv[]) { called 'init'. After a subsequent reexecution we are then called 'systemd'. That is confusing, hence let's call us systemd right-away. */ - program_invocation_short_name = systemd; prctl(PR_SET_NAME, systemd); + saved_argv = argv; saved_argc = argc;