chiark / gitweb /
pam: remove only sessions we ourselves created in the first place
[elogind.git] / src / main.c
index aaddce86e0543fb83216fe2dadf6a62a74a3d656..964bb9cc325f8bac2cb1fd4d9e0ba58c33e9a8b7 100644 (file)
@@ -836,7 +836,7 @@ int main(int argc, char *argv[]) {
                 return 1;
         }
 
-        log_show_color(true);
+        log_show_color(isatty(STDERR_FILENO) > 0);
         log_show_location(false);
         log_set_max_level(LOG_INFO);