summaryrefslogtreecommitdiff
path: root/src/login/inhibit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-14 20:09:39 +0100
committerGitHub <noreply@github.com>2018-11-14 20:09:39 +0100
commit042cad5737917e6964ddddba72b8fcc0cb890877 (patch)
tree7085fa0272983217e94d5ce8f84cd5056d6ece31 /src/login/inhibit.c
parent3dafa6bc7636451e49565f6260c531c0304285f6 (diff)
parent84afbbcf242aef2a7ff5449be84a98e315cd4b10 (diff)
downloadsystemd-042cad5737917e6964ddddba72b8fcc0cb890877.tar.gz
systemd-042cad5737917e6964ddddba72b8fcc0cb890877.tar.bz2
systemd-042cad5737917e6964ddddba72b8fcc0cb890877.zip
Merge pull request #10753 from keszybz/pager-no-interrupt
Add mode in journalctl where ^C is handled by the pager
Diffstat (limited to 'src/login/inhibit.c')
-rw-r--r--src/login/inhibit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/login/inhibit.c b/src/login/inhibit.c
index 8fe64b9184..22fee49a2b 100644
--- a/src/login/inhibit.c
+++ b/src/login/inhibit.c
@@ -26,7 +26,7 @@ static const char* arg_what = "idle:sleep:shutdown";
static const char* arg_who = NULL;
static const char* arg_why = "Unknown reason";
static const char* arg_mode = NULL;
-static bool arg_no_pager = false;
+static PagerFlags arg_pager_flags = 0;
static bool arg_legend = true;
static enum {
@@ -68,7 +68,7 @@ static int print_inhibitors(sd_bus *bus) {
_cleanup_(table_unrefp) Table *table = NULL;
int r;
- (void) pager_open(arg_no_pager, false);
+ (void) pager_open(arg_pager_flags);
r = sd_bus_call_method(
bus,
@@ -241,7 +241,7 @@ static int parse_argv(int argc, char *argv[]) {
break;
case ARG_NO_PAGER:
- arg_no_pager = true;
+ arg_pager_flags |= PAGER_DISABLE;
break;
case ARG_NO_LEGEND: