]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.14.97/vt-invoke-notifier-on-screen-size-change.patch
Linux 4.14.97
[thirdparty/kernel/stable-queue.git] / releases / 4.14.97 / vt-invoke-notifier-on-screen-size-change.patch
CommitLineData
34d0bc9e
GKH
1From 0c9b1965faddad7534b6974b5b36c4ad37998f8e Mon Sep 17 00:00:00 2001
2From: Nicolas Pitre <nicolas.pitre@linaro.org>
3Date: Tue, 8 Jan 2019 22:55:01 -0500
4Subject: vt: invoke notifier on screen size change
5
6From: Nicolas Pitre <nicolas.pitre@linaro.org>
7
8commit 0c9b1965faddad7534b6974b5b36c4ad37998f8e upstream.
9
10User space using poll() on /dev/vcs devices are not awaken when a
11screen size change occurs. Let's fix that.
12
13Signed-off-by: Nicolas Pitre <nico@linaro.org>
14Cc: stable <stable@vger.kernel.org>
15Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16
17---
18 drivers/tty/vt/vt.c | 1 +
19 1 file changed, 1 insertion(+)
20
21--- a/drivers/tty/vt/vt.c
22+++ b/drivers/tty/vt/vt.c
23@@ -953,6 +953,7 @@ static int vc_do_resize(struct tty_struc
24 if (con_is_visible(vc))
25 update_screen(vc);
26 vt_event_post(VT_EVENT_RESIZE, vc->vc_num, vc->vc_num);
27+ notify_update(vc);
28 return err;
29 }
30