static int arg_signal = SIGTERM;
static char *arg_root = NULL;
static usec_t arg_when = 0;
-static char *argv_cmdline = NULL;
static enum action {
ACTION_SYSTEMCTL,
ACTION_HALT,
init = NULL;
}
- /* Instruct PID1 to exclude us from its killing spree applied during
- * the transition. Otherwise we would exit with a failure status even
- * though the switch to the new root has succeed. */
- argv_cmdline[0] = '@';
+ /* Instruct PID1 to exclude us from its killing spree applied during the transition. Otherwise we
+ * would exit with a failure status even though the switch to the new root has succeed. */
+ assert(saved_argv);
+ assert(saved_argv[0]);
+ saved_argv[0][0] = '@';
r = acquire_bus(BUS_MANAGER, &bus);
if (r < 0)
static int run(int argc, char *argv[]) {
int r;
- argv_cmdline = argv[0];
-
setlocale(LC_ALL, "");
log_parse_environment();
log_open();