diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2010-09-07 10:30:50 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-09-14 22:14:52 +0200 |
commit | ef639c5f9e9ed397424b50b14e2160993c7841d1 (patch) | |
tree | e82f1e0699ee590b439e8f1eaf7c370020abe7f6 /src/systemctl.c | |
parent | b9aea9547a5398685c28288b7dabfede55e0a39b (diff) |
systemctl: use on_tty() helper everywhere
Diffstat (limited to 'src/systemctl.c')
-rw-r--r-- | src/systemctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemctl.c b/src/systemctl.c index 1f93bc974a..ff6f86a0d2 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -337,7 +337,7 @@ static int list_units(DBusConnection *bus, char **args, unsigned n) { qsort(unit_infos, c, sizeof(struct unit_info), compare_unit_info); - if (isatty(STDOUT_FILENO)) { + if (on_tty()) { if (columns() >= 80+12 || arg_full) printf("%-25s %-6s %-12s %-18s %-15s %s\n", "UNIT", "LOAD", "ACTIVE", "SUB", "JOB", "DESCRIPTION"); else @@ -400,7 +400,7 @@ static int list_units(DBusConnection *bus, char **args, unsigned n) { } } - if (isatty(STDOUT_FILENO)) { + if (on_tty()) { printf("\nLOAD = Reflects whether the unit definition was properly loaded.\n" "ACTIVE = The high-level unit activation state, i.e. generalization of SUB.\n" |