chiark / gitweb /
journal: log user units for coredumps and show them in systemctl status
[elogind.git] / src / shared / pager.c
index 6799787e85b0cf7d339e23d553b328b6fbd9d3ab..488a12c763839f156471d1b56606fae5f06b8188 100644 (file)
@@ -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