summaryrefslogtreecommitdiff
path: root/src/execute.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/execute.c
parent5b2a09037232980ad42ba3611cf194078ae5e546 (diff)
main: ignore EPERM in TIOCSTTY when opening terminal for crash shell
Diffstat (limited to 'src/execute.c')
-rw-r--r--src/execute.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/execute.c b/src/execute.c
index 12f514504c..1076834702 100644
--- a/src/execute.c
+++ b/src/execute.c
@@ -274,7 +274,8 @@ static int setup_input(const ExecContext *context, int socket_fd) {
if ((fd = acquire_terminal(
tty_path(context),
i == EXEC_INPUT_TTY_FAIL,
- i == EXEC_INPUT_TTY_FORCE)) < 0)
+ i == EXEC_INPUT_TTY_FORCE,
+ false)) < 0)
return fd;
if (fd != STDIN_FILENO) {
@@ -429,7 +430,8 @@ static int setup_confirm_stdio(const ExecContext *context,
if ((fd = acquire_terminal(
tty_path(context),
context->std_input == EXEC_INPUT_TTY_FAIL,
- context->std_input == EXEC_INPUT_TTY_FORCE)) < 0) {
+ context->std_input == EXEC_INPUT_TTY_FORCE,
+ false)) < 0) {
r = EXIT_STDIN;
goto fail;
}