summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-18 03:40:19 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-18 03:40:19 +0200
commit21de3988abfdf69e7c1e2d00a087e2d8b18ad758 (patch)
tree2f482b4c57d25b3a8b877f9b23e495bd19e3870c /src/main.c
parent5b2a09037232980ad42ba3611cf194078ae5e546 (diff)
main: ignore EPERM in TIOCSTTY when opening terminal for crash shell
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
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));