chiark / gitweb /
unit: don't gc units that are still in STUB state
[elogind.git] / src / main.c
index e2d2ab5e647ad83bf8cf2442f4982cd6a1eff5bd..311ece6b57141cdf8be5cc1d4f1cbceea5f76342 100644 (file)
@@ -138,7 +138,7 @@ _noreturn static void crash(int sig) {
                 else if (pid == 0) {
                         int fd, r;
 
-                        if ((fd = acquire_terminal("/dev/console", false, true)) < 0)
+                        if ((fd = acquire_terminal("/dev/console", false, true, true)) < 0)
                                 log_error("Failed to acquire terminal: %s", strerror(-fd));
                         else if ((r = make_stdio(fd)) < 0)
                                 log_error("Failed to duplicate terminal fd: %s", strerror(-r));