From 19b2b16ca5e5dc9349d2e017570e246ef16f5599 Mon Sep 17 00:00:00 2001 From: Pavel Tsekov Date: Mon, 8 May 2006 14:38:36 +0000 Subject: [PATCH] * src/subshell.c (resize_subshell): Do not try to resize the subshell tty if the subshell is not running. --- src/ChangeLog | 5 +++++ src/subshell.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 4cf3a6a48..bc95d3f4c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2006-05-08 Pavel Tsekov + + * subshell.c (resize_subshell): Do not try to resize the subshell tty + if the subshell is not running. + 2006-04-13 Leonard den Ottolander * cons.handler.c (handle_console_linux): Remove redundant close() calls diff --git a/src/subshell.c b/src/subshell.c index 780a96916..07f983231 100644 --- a/src/subshell.c +++ b/src/subshell.c @@ -660,6 +660,9 @@ static int resize_tty (int fd) /* Resize subshell_pty */ void resize_subshell (void) { + if (use_subshell == 0) + return; + resize_tty (subshell_pty); }