xfree86: In InitOutput, only call OsReleaseSIGIO if OsBlockSIGIO was called
Otherwise, OsReleaseSIGIO will complain, or perhaps something worse will happen (if SIGIO actually needs to be blocked here). Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
ea8b04507e
commit
d6756e0298
|
@ -401,6 +401,7 @@ InitOutput(ScreenInfo * pScreenInfo, int argc, char **argv)
|
||||||
MessageType pix24From = X_DEFAULT;
|
MessageType pix24From = X_DEFAULT;
|
||||||
Bool pix24Fail = FALSE;
|
Bool pix24Fail = FALSE;
|
||||||
Bool autoconfig = FALSE;
|
Bool autoconfig = FALSE;
|
||||||
|
Bool sigio_blocked = FALSE;
|
||||||
GDevPtr configured_device;
|
GDevPtr configured_device;
|
||||||
|
|
||||||
xf86Initialising = TRUE;
|
xf86Initialising = TRUE;
|
||||||
|
@ -819,6 +820,7 @@ InitOutput(ScreenInfo * pScreenInfo, int argc, char **argv)
|
||||||
#endif
|
#endif
|
||||||
xf86AccessEnter();
|
xf86AccessEnter();
|
||||||
OsBlockSIGIO();
|
OsBlockSIGIO();
|
||||||
|
sigio_blocked = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -924,7 +926,8 @@ InitOutput(ScreenInfo * pScreenInfo, int argc, char **argv)
|
||||||
AttachUnboundGPU(xf86Screens[0]->pScreen, xf86GPUScreens[i]->pScreen);
|
AttachUnboundGPU(xf86Screens[0]->pScreen, xf86GPUScreens[i]->pScreen);
|
||||||
|
|
||||||
xf86VGAarbiterWrapFunctions();
|
xf86VGAarbiterWrapFunctions();
|
||||||
OsReleaseSIGIO();
|
if (sigio_blocked)
|
||||||
|
OsReleaseSIGIO();
|
||||||
|
|
||||||
xf86InitOrigins();
|
xf86InitOrigins();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue