diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-10-18 23:59:41 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-10-19 00:07:55 +0200 |
commit | 8481248b9fbddc6d5e6ff26eb23505ef13dc85f7 (patch) | |
tree | e4fe79bad17efaf2c8e6382180be720776e9d73c /src/shared/pager.c | |
parent | 28917d7dc711746795f7e6468c06c1983a5cdf53 (diff) |
util: unify usage of on_tty() in util.c
Diffstat (limited to 'src/shared/pager.c')
-rw-r--r-- | src/shared/pager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/pager.c b/src/shared/pager.c index 6799787e85..488a12c763 100644 --- a/src/shared/pager.c +++ b/src/shared/pager.c @@ -57,7 +57,7 @@ int pager_open(void) { if (!*pager || streq(pager, "cat")) return 0; - if (isatty(STDOUT_FILENO) <= 0) + if (!on_tty()) return 0; /* Determine and cache number of columns before we spawn the |