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;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"