execute: use right fd to fix tty size

This commit is contained in:
Lennart Poettering
2023-11-10 21:38:26 +01:00
parent 29ed1f0203
commit c34eaeb5eb
+1 -2
View File
@@ -171,8 +171,7 @@ void exec_context_tty_reset(const ExecContext *context, const ExecParameters *p)
if (context->tty_reset)
(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);
(void) exec_context_apply_tty_size(context, fd, path);
if (context->tty_vt_disallocate && path)
(void) vt_disallocate(path);