projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30e7517
)
vt: invoke notifier on screen size change
author
Nicolas Pitre
<nicolas.pitre@linaro.org>
Wed, 9 Jan 2019 03:55:01 +0000
(22:55 -0500)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 31 Jan 2019 07:12:36 +0000
(08:12 +0100)
commit
0c9b1965faddad7534b6974b5b36c4ad37998f8e
upstream.
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>
drivers/tty/vt/vt.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/tty/vt/vt.c
b/drivers/tty/vt/vt.c
index 9d3e413f48c6a2e4d63963ff8cde75efd256d0c6..232cb0a760b907c9f7da4f1ee3e7ffb927cd5f89 100644
(file)
--- a/
drivers/tty/vt/vt.c
+++ b/
drivers/tty/vt/vt.c
@@
-956,6
+956,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;
}