xfree86: Remove NoTrapSignals
This was dangerous on UMS and largely pointless on KMS.
This commit is contained in:
parent
d1aeaad5c6
commit
c7414f4d07
|
@ -619,7 +619,6 @@ configFiles(XF86ConfFilesPtr fileconf)
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
FLAG_NOTRAPSIGNALS,
|
|
||||||
FLAG_DONTVTSWITCH,
|
FLAG_DONTVTSWITCH,
|
||||||
FLAG_DONTZAP,
|
FLAG_DONTZAP,
|
||||||
FLAG_DONTZOOM,
|
FLAG_DONTZOOM,
|
||||||
|
@ -653,8 +652,6 @@ typedef enum {
|
||||||
* if the parser found the option in the config file.
|
* if the parser found the option in the config file.
|
||||||
*/
|
*/
|
||||||
static OptionInfoRec FlagOptions[] = {
|
static OptionInfoRec FlagOptions[] = {
|
||||||
{FLAG_NOTRAPSIGNALS, "NoTrapSignals", OPTV_BOOLEAN,
|
|
||||||
{0}, FALSE},
|
|
||||||
{FLAG_DONTVTSWITCH, "DontVTSwitch", OPTV_BOOLEAN,
|
{FLAG_DONTVTSWITCH, "DontVTSwitch", OPTV_BOOLEAN,
|
||||||
{0}, FALSE},
|
{0}, FALSE},
|
||||||
{FLAG_DONTZAP, "DontZap", OPTV_BOOLEAN,
|
{FLAG_DONTZAP, "DontZap", OPTV_BOOLEAN,
|
||||||
|
@ -737,7 +734,6 @@ configServerFlags(XF86ConfFlagsPtr flagsconf, XF86OptionPtr layoutopts)
|
||||||
|
|
||||||
xf86ProcessOptions(-1, optp, FlagOptions);
|
xf86ProcessOptions(-1, optp, FlagOptions);
|
||||||
|
|
||||||
xf86GetOptValBool(FlagOptions, FLAG_NOTRAPSIGNALS, &xf86Info.notrapSignals);
|
|
||||||
xf86GetOptValBool(FlagOptions, FLAG_DONTVTSWITCH, &xf86Info.dontVTSwitch);
|
xf86GetOptValBool(FlagOptions, FLAG_DONTVTSWITCH, &xf86Info.dontVTSwitch);
|
||||||
xf86GetOptValBool(FlagOptions, FLAG_DONTZAP, &xf86Info.dontZap);
|
xf86GetOptValBool(FlagOptions, FLAG_DONTZAP, &xf86Info.dontZap);
|
||||||
xf86GetOptValBool(FlagOptions, FLAG_DONTZOOM, &xf86Info.dontZoom);
|
xf86GetOptValBool(FlagOptions, FLAG_DONTZOOM, &xf86Info.dontZoom);
|
||||||
|
|
|
@ -108,7 +108,6 @@ xf86InfoRec xf86Info = {
|
||||||
.ShareVTs = FALSE,
|
.ShareVTs = FALSE,
|
||||||
.dontZap = FALSE,
|
.dontZap = FALSE,
|
||||||
.dontZoom = FALSE,
|
.dontZoom = FALSE,
|
||||||
.notrapSignals = FALSE,
|
|
||||||
.currentScreen = NULL,
|
.currentScreen = NULL,
|
||||||
#ifdef CSRG_BASED
|
#ifdef CSRG_BASED
|
||||||
.consType = -1,
|
.consType = -1,
|
||||||
|
|
|
@ -232,24 +232,6 @@ xf86PrivsElevated(void)
|
||||||
return PrivsElevated();
|
return PrivsElevated();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
TrapSignals(void)
|
|
||||||
{
|
|
||||||
if (xf86Info.notrapSignals) {
|
|
||||||
OsSignal(SIGSEGV, SIG_DFL);
|
|
||||||
OsSignal(SIGABRT, SIG_DFL);
|
|
||||||
OsSignal(SIGILL, SIG_DFL);
|
|
||||||
#ifdef SIGEMT
|
|
||||||
OsSignal(SIGEMT, SIG_DFL);
|
|
||||||
#endif
|
|
||||||
OsSignal(SIGFPE, SIG_DFL);
|
|
||||||
OsSignal(SIGBUS, SIG_DFL);
|
|
||||||
OsSignal(SIGSYS, SIG_DFL);
|
|
||||||
OsSignal(SIGXCPU, SIG_DFL);
|
|
||||||
OsSignal(SIGXFSZ, SIG_DFL);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
AddSeatId(CallbackListPtr *pcbl, void *data, void *screen)
|
AddSeatId(CallbackListPtr *pcbl, void *data, void *screen)
|
||||||
{
|
{
|
||||||
|
@ -356,8 +338,6 @@ InitOutput(ScreenInfo * pScreenInfo, int argc, char **argv)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TrapSignals();
|
|
||||||
|
|
||||||
/* Initialise the loader */
|
/* Initialise the loader */
|
||||||
LoaderInit();
|
LoaderInit();
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,6 @@ typedef struct {
|
||||||
Bool ShareVTs;
|
Bool ShareVTs;
|
||||||
Bool dontZap;
|
Bool dontZap;
|
||||||
Bool dontZoom;
|
Bool dontZoom;
|
||||||
Bool notrapSignals; /* don't exit cleanly - die at fault */
|
|
||||||
|
|
||||||
/* graphics part */
|
/* graphics part */
|
||||||
ScreenPtr currentScreen;
|
ScreenPtr currentScreen;
|
||||||
|
|
|
@ -216,7 +216,6 @@ DisableVidModeExtension B F disable VidMode extension
|
||||||
DontVTSwitch B F disable Ctrl-Alt-Fn
|
DontVTSwitch B F disable Ctrl-Alt-Fn
|
||||||
DontZap B F disable Ctrl-Alt-BS sequence
|
DontZap B F disable Ctrl-Alt-BS sequence
|
||||||
DontZoom B F disable Ctrl-Alt-+/-
|
DontZoom B F disable Ctrl-Alt-+/-
|
||||||
NoTrapSignals B F don't trap signals
|
|
||||||
OffTime I F Time before DPMS off mode active (min)
|
OffTime I F Time before DPMS off mode active (min)
|
||||||
PciProbe1 O F use PCI probe algorithm 1
|
PciProbe1 O F use PCI probe algorithm 1
|
||||||
PciProbe2 O F use PCI probe algorithm 2
|
PciProbe2 O F use PCI probe algorithm 2
|
||||||
|
|
|
@ -509,15 +509,6 @@ section to use in the absence of the
|
||||||
.B \-layout
|
.B \-layout
|
||||||
command line option.
|
command line option.
|
||||||
.TP 7
|
.TP 7
|
||||||
.BI "Option \*qNoTrapSignals\*q \*q" boolean \*q
|
|
||||||
This prevents the Xorg server from trapping a range of unexpected fatal
|
|
||||||
signals and exiting cleanly.
|
|
||||||
Instead, the Xorg server will die and drop core where the fault occurred.
|
|
||||||
The default behaviour is for the Xorg server to exit cleanly, but still drop a
|
|
||||||
core file.
|
|
||||||
In general you never want to use this option unless you are debugging an Xorg
|
|
||||||
server problem and know how to deal with the consequences.
|
|
||||||
.TP 7
|
|
||||||
.BI "Option \*qDontVTSwitch\*q \*q" boolean \*q
|
.BI "Option \*qDontVTSwitch\*q \*q" boolean \*q
|
||||||
This disallows the use of the
|
This disallows the use of the
|
||||||
.BI Ctrl+Alt+F n
|
.BI Ctrl+Alt+F n
|
||||||
|
|
|
@ -65,7 +65,6 @@
|
||||||
|
|
||||||
static const xf86ConfigSymTabRec ServerFlagsTab[] = {
|
static const xf86ConfigSymTabRec ServerFlagsTab[] = {
|
||||||
{ENDSECTION, "endsection"},
|
{ENDSECTION, "endsection"},
|
||||||
{NOTRAPSIGNALS, "notrapsignals"},
|
|
||||||
{DONTZAP, "dontzap"},
|
{DONTZAP, "dontzap"},
|
||||||
{DONTZOOM, "dontzoom"},
|
{DONTZOOM, "dontzoom"},
|
||||||
{DISABLEVIDMODE, "disablevidmodeextension"},
|
{DISABLEVIDMODE, "disablevidmodeextension"},
|
||||||
|
@ -111,7 +110,6 @@ xf86parseFlagsSection(void)
|
||||||
case SUSPENDTIME:
|
case SUSPENDTIME:
|
||||||
case OFFTIME:
|
case OFFTIME:
|
||||||
hasvalue = TRUE;
|
hasvalue = TRUE;
|
||||||
case NOTRAPSIGNALS:
|
|
||||||
case DONTZAP:
|
case DONTZAP:
|
||||||
case DONTZOOM:
|
case DONTZOOM:
|
||||||
case DISABLEVIDMODE:
|
case DISABLEVIDMODE:
|
||||||
|
|
|
@ -103,7 +103,6 @@ typedef enum {
|
||||||
XKBDIR,
|
XKBDIR,
|
||||||
|
|
||||||
/* Server Flag tokens. These are deprecated in favour of generic Options */
|
/* Server Flag tokens. These are deprecated in favour of generic Options */
|
||||||
NOTRAPSIGNALS,
|
|
||||||
DONTZAP,
|
DONTZAP,
|
||||||
DONTZOOM,
|
DONTZOOM,
|
||||||
DISABLEVIDMODE,
|
DISABLEVIDMODE,
|
||||||
|
|
|
@ -82,12 +82,6 @@ EndSection
|
||||||
|
|
||||||
Section "ServerFlags"
|
Section "ServerFlags"
|
||||||
|
|
||||||
# Uncomment this to cause a core dump at the spot where a signal is
|
|
||||||
# received. This may leave the console in an unusable state, but may
|
|
||||||
# provide a better stack trace in the core dump to aid in debugging
|
|
||||||
|
|
||||||
# Option "NoTrapSignals"
|
|
||||||
|
|
||||||
# Uncomment this to disable the <Ctrl><Alt><Fn> VT switch sequence
|
# Uncomment this to disable the <Ctrl><Alt><Fn> VT switch sequence
|
||||||
# (where n is 1 through 12). This allows clients to receive these key
|
# (where n is 1 through 12). This allows clients to receive these key
|
||||||
# events.
|
# events.
|
||||||
|
|
Loading…
Reference in New Issue