chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util: unify usage of on_tty() in util.c
[elogind.git]
/
src
/
shared
/
pager.c
diff --git
a/src/shared/pager.c
b/src/shared/pager.c
index 6799787e85b0cf7d339e23d553b328b6fbd9d3ab..488a12c763839f156471d1b56606fae5f06b8188 100644
(file)
--- 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