pid1: disable color output when TERM=dumb
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 20 Apr 2016 01:56:39 +0000 (21:56 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 20 Apr 2016 13:00:39 +0000 (09:00 -0400)
commitd5ca5e132463c52c5a9c6285475c7a51b894b9e4
tree17ea0977b36321439e9577d54f38c4b7276a587d
parent4d46e5db1518e6ed0f727e8561f130b4f512033f
pid1: disable color output when TERM=dumb

This changes the behaviour of pid1 in the following ways:
- obviously $TERM is now checked,
- $SYSTEMD_COLORS is now honoured too, before only SYSTEMD_LOG_COLORS was checked,
- isatty() is run on stdout not stderr.

As requested in #3025.
src/core/main.c