Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 May 2014 19:29:38 +0000 (UTC)
From:      Aleksandr Rybalko <ray@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r265927 - head/sys/dev/vt
Message-ID:  <201405121929.s4CJTcBx010967@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ray
Date: Mon May 12 19:29:38 2014
New Revision: 265927
URL: http://svnweb.freebsd.org/changeset/base/265927

Log:
  Update terminal sizes in any case when new vt(4) driver arrive.
  (Plus remove one unused newline)
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/dev/vt/vt_core.c

Modified: head/sys/dev/vt/vt_core.c
==============================================================================
--- head/sys/dev/vt/vt_core.c	Mon May 12 19:11:39 2014	(r265926)
+++ head/sys/dev/vt/vt_core.c	Mon May 12 19:29:38 2014	(r265927)
@@ -1981,8 +1981,11 @@ vt_upgrade(struct vt_device *vd)
 	unsigned int i;
 
 	/* Device didn't pass vd_init() or already upgraded. */
-	if (vd->vd_flags & (VDF_ASYNC|VDF_DEAD))
+	if (vd->vd_flags & (VDF_ASYNC|VDF_DEAD)) {
+		/* Refill settings with new sizes anyway. */
+		vt_resize(vd);
 		return;
+	}
 	vd->vd_flags |= VDF_ASYNC;
 
 	for (i = 0; i < VT_MAXWINDOWS; i++) {
@@ -2019,7 +2022,6 @@ vt_upgrade(struct vt_device *vd)
 
 	/* Refill settings with new sizes. */
 	vt_resize(vd);
-
 }
 
 static void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405121929.s4CJTcBx010967>