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.
This commit is contained in:
Bruce Evans 2019-04-25 15:48:23 +00:00
parent 50575ce11c
commit 73416eeccd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=346678

View file

@ -73,6 +73,7 @@ struct vt_mode smode;
if (!VGLInitDone)
return;
VGLInitDone = 0;
signal(SIGUSR1, SIG_IGN);
signal(SIGUSR2, SIG_IGN);
VGLSwitchPending = 0;