chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9aea95
)
systemctl: use on_tty() helper everywhere
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Tue, 7 Sep 2010 08:30:50 +0000
(10:30 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 14 Sep 2010 20:14:52 +0000
(22:14 +0200)
src/systemctl.c
patch
|
blob
|
history
diff --git
a/src/systemctl.c
b/src/systemctl.c
index 1f93bc974aec3c7002cc7339adc1e5e8bd2a4d4d..ff6f86a0d2ef76036a35e6b8282945a837ec9c33 100644
(file)
--- 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"