chiark / gitweb /
log: rework logging logic so that we don't keep /dev/console open
[elogind.git] / unit.c
diff --git a/unit.c b/unit.c
index 7779753591921d29ba4f6ff7043b9c18288ff04b..1757af317ddbf60c7ac869ca4bdc992ca94e3aee 100644 (file)
--- a/unit.c
+++ b/unit.c
@@ -1027,7 +1027,7 @@ void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns) {
                         /* The syslog daemon just might have become
                          * available, hence try to connect to it, if
                          * we aren't yet connected. */
-                        log_open_syslog();
+                        log_open();
 
                 if (u->meta.type == UNIT_MOUNT)
                         /* Another directory became available, let's