Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Apr 2019 15:48:23 +0000 (UTC)
From:      Bruce Evans <bde@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r346678 - head/lib/libvgl
Message-ID:  <201904251548.x3PFmNWC096472@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bde
Date: Thu Apr 25 15:48:23 2019
New Revision: 346678
URL: https://svnweb.freebsd.org/changeset/base/346678

Log:
  Restore doing nothing for calls to VGLEnd() after the first. I broke this
  in r346631.  VGLEnd() clears some state variables as it restores state,
  but not all of them, so it still needs to clear a single state variable
  to indicate that it has completed.  Put this clearing back where it was
  (at the start instead of the end) to avoid moving bugs in the signal
  handling.

Modified:
  head/lib/libvgl/main.c

Modified: head/lib/libvgl/main.c
==============================================================================
--- head/lib/libvgl/main.c	Thu Apr 25 15:37:28 2019	(r346677)
+++ head/lib/libvgl/main.c	Thu Apr 25 15:48:23 2019	(r346678)
@@ -73,6 +73,7 @@ struct vt_mode smode;
 
   if (!VGLInitDone)
     return;
+  VGLInitDone = 0;
   signal(SIGUSR1, SIG_IGN);
   signal(SIGUSR2, SIG_IGN);
   VGLSwitchPending = 0;



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