From 21de3988abfdf69e7c1e2d00a087e2d8b18ad758 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 18 May 2010 03:40:19 +0200 Subject: main: ignore EPERM in TIOCSTTY when opening terminal for crash shell --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index e2d2ab5e64..311ece6b57 100644 --- a/src/main.c +++ b/src/main.c @@ -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)); -- cgit v1.2.3-54-g00ecf