chiark / gitweb /
core: make systemd.confirm_spawn=1 actually work
[elogind.git] / src / core / main.c
index 8f27a714cc01d35bc00cda5801d9f7fb52b2f221..7c66665e843957f931149bc12e166467f40ffae4 100644 (file)
@@ -169,7 +169,7 @@ _noreturn_ static void crash(int sig) {
                 else if (pid == 0) {
                         int fd, r;
 
-                        if ((fd = acquire_terminal("/dev/console", false, true, true)) < 0)
+                        if ((fd = acquire_terminal("/dev/console", false, true, true, (usec_t) -1)) < 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));