summaryrefslogtreecommitdiffstats
path: root/drivers/char/vc_screen.c
diff options
context:
space:
mode:
authorNicolas Pitre2010-10-01 06:10:44 +0200
committerGreg Kroah-Hartman2010-10-22 19:20:06 +0200
commit432c9ed22aff641039ccd400cdabf983fabc285e (patch)
treed4f458dfad838e93442a5ebbb3486113c8f77631 /drivers/char/vc_screen.c
parentvcs: add poll/fasync support (diff)
downloadkernel-qcow2-linux-432c9ed22aff641039ccd400cdabf983fabc285e.tar.gz
kernel-qcow2-linux-432c9ed22aff641039ccd400cdabf983fabc285e.tar.xz
kernel-qcow2-linux-432c9ed22aff641039ccd400cdabf983fabc285e.zip
vcs: invoke the vt update callback when /dev/vcs* is written to
A notifier chain is called whenever the vt code modifies a terminal content, except for one case which is when the modification comes through writes to /dev/vcs* devices. Let's add the missing notifier invocation at the end of vcs_write() for that case too. Signed-off-by: Nicolas Pitre <nicolas.pitre@canonical.com> Cc: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/char/vc_screen.c')
-rw-r--r--drivers/char/vc_screen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/vc_screen.c b/drivers/char/vc_screen.c
index 6f7054e1a516..273ab44cc91d 100644
--- a/drivers/char/vc_screen.c
+++ b/drivers/char/vc_screen.c
@@ -538,6 +538,8 @@ vcs_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos)
}
*ppos += written;
ret = written;
+ if (written)
+ vcs_scr_updated(vc);
unlock_out:
release_console_sem();