diff options
-rw-r--r-- | src/systemctl/systemctl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index c6342243f8..49395ce02c 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -8466,6 +8466,11 @@ static int halt_main(void) { } } + /* In order to minimize the difference between operation with and + * without logind, we explicitly enable non-blocking mode for this, + * as logind's shutdown operations are always non-blocking. */ + arg_no_block = true; + if (!arg_dry_run && !arg_force) return start_with_fallback(); |