aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorNicolas Pitre <nicolas.pitre@linaro.org>2019-01-08 22:55:01 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-18 13:42:58 +0100
commit0c9b1965faddad7534b6974b5b36c4ad37998f8e (patch)
tree57b4e78beead0f1fb4efa241b4f9a67d9568f7b8 /drivers/tty
parentvt: always call notifier with the console lock held (diff)
downloadlinux-dev-0c9b1965faddad7534b6974b5b36c4ad37998f8e.tar.xz
linux-dev-0c9b1965faddad7534b6974b5b36c4ad37998f8e.zip
vt: invoke notifier on screen size change
User space using poll() on /dev/vcs devices are not awaken when a screen size change occurs. Let's fix that. Signed-off-by: Nicolas Pitre <nico@linaro.org> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/vt/vt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index 5b8b0e33f939..bba75560d11e 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -1272,6 +1272,7 @@ static int vc_do_resize(struct tty_struct *tty, struct vc_data *vc,
if (con_is_visible(vc))
update_screen(vc);
vt_event_post(VT_EVENT_RESIZE, vc->vc_num, vc->vc_num);
+ notify_update(vc);
return err;
}