execute: make clear what reset_terminal_fd()'s 2nd param is about
This commit is contained in:
@@ -716,7 +716,7 @@ static int setup_confirm_stdio(
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
r = reset_terminal_fd(fd, true);
|
||||
r = reset_terminal_fd(fd, /* switch_to_text= */ true);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
|
||||
+1
-1
@@ -169,7 +169,7 @@ void exec_context_tty_reset(const ExecContext *context, const ExecParameters *p)
|
||||
(void) terminal_vhangup_fd(fd);
|
||||
|
||||
if (context->tty_reset)
|
||||
(void) reset_terminal_fd(fd, true);
|
||||
(void) reset_terminal_fd(fd, /* switch_to_text= */ true);
|
||||
|
||||
if (p && p->stdin_fd >= 0)
|
||||
(void) exec_context_apply_tty_size(context, p->stdin_fd, path);
|
||||
|
||||
Reference in New Issue
Block a user