mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-25 01:59:56 +00:00
kdrive: add KdSignalWrapper
In preparation for adding the Xfbdev X11 kdrive server Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
committed by
Enrico Weigelt
parent
6915ff3312
commit
7f3779f062
@@ -1049,6 +1049,13 @@ KdDepthToFb(ScreenPtr pScreen, int depth)
|
||||
|
||||
#endif
|
||||
|
||||
static int
|
||||
KdSignalWrapper(int signum)
|
||||
{
|
||||
kdCaughtSignal = TRUE;
|
||||
return 1; /* use generic OS layer cleanup & abort */
|
||||
}
|
||||
|
||||
void
|
||||
KdInitOutput(ScreenInfo * pScreenInfo, int argc, char **argv)
|
||||
{
|
||||
@@ -1090,6 +1097,7 @@ KdInitOutput(ScreenInfo * pScreenInfo, int argc, char **argv)
|
||||
for (screen = card->screenList; screen; screen = screen->next)
|
||||
KdAddScreen(pScreenInfo, screen, argc, argv);
|
||||
|
||||
OsRegisterSigWrapper(KdSignalWrapper);
|
||||
xorgGlxCreateVendor();
|
||||
|
||||
#if defined(CONFIG_UDEV) || defined(CONFIG_HAL)
|
||||
|
||||
Reference in New Issue
Block a user