<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Nov 20, 2017 at 9:43 PM, Adam Jackson <span dir="ltr"><<a href="mailto:ajax@redhat.com" target="_blank">ajax@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This no longer does anything useful.<br>
<br>
Signed-off-by: Adam Jackson <<a href="mailto:ajax@redhat.com">ajax@redhat.com</a>><br>
---<br>
hw/xfree86/common/xf86.h | 2 --<br>
hw/xfree86/common/xf86Events.c | 11 -----------<br>
hw/xfree86/common/xf86Globals.<wbr>c | 1 -<br>
hw/xfree86/common/xf86Helper.c | 6 ------<br>
hw/xfree86/common/xf86Init.c | 17 +++--------------<br>
hw/xfree86/common/xf86Priv.h | 2 --<br>
hw/xfree86/common/xf86Privstr.<wbr>h | 1 -<br>
hw/xfree86/doc/ddxDesign.xml | 10 ----------<br>
8 files changed, 3 insertions(+), 47 deletions(-)<br>
<br>
diff --git a/hw/xfree86/common/xf86.h b/hw/xfree86/common/xf86.h<br>
index 43b693143e..1c25468942 100644<br>
--- a/hw/xfree86/common/xf86.h<br>
+++ b/hw/xfree86/common/xf86.h<br>
@@ -296,8 +296,6 @@ xf86ServerIsResetting(void);<br>
extern _X_EXPORT Bool<br>
xf86ServerIsOnlyDetecting(<wbr>void);<br>
extern _X_EXPORT Bool<br>
-xf86CaughtSignal(void);<br>
-extern _X_EXPORT Bool<br>
xf86GetVidModeAllowNonLocal(<wbr>void);<br>
extern _X_EXPORT Bool<br>
xf86GetVidModeEnabled(void);<br>
diff --git a/hw/xfree86/common/<wbr>xf86Events.c b/hw/xfree86/common/<wbr>xf86Events.c<br>
index a27c7ff1b0..8a800bd8fd 100644<br>
--- a/hw/xfree86/common/<wbr>xf86Events.c<br>
+++ b/hw/xfree86/common/<wbr>xf86Events.c<br>
@@ -267,17 +267,6 @@ xf86RemoveEnabledDevice(<wbr>InputInfoPtr pInfo)<br>
InputThreadUnregisterDev(<wbr>pInfo->fd);<br>
}<br>
<br>
-/*<br>
- * xf86SigWrapper --<br>
- * Catch unexpected signals and exit or continue cleanly.<br>
- */<br>
-int<br>
-xf86SigWrapper(int signo)<br>
-{<br>
- xf86Info.caughtSignal = TRUE;<br>
- return 1; /* abort */<br>
-}<br>
-<br>
/*<br>
* xf86PrintBacktrace --<br>
* Print a stack backtrace for debugging purposes.<br>
diff --git a/hw/xfree86/common/<wbr>xf86Globals.c b/hw/xfree86/common/<wbr>xf86Globals.c<br>
index ddf7a8696b..85efe3fc12 100644<br>
--- a/hw/xfree86/common/<wbr>xf86Globals.c<br>
+++ b/hw/xfree86/common/<wbr>xf86Globals.c<br>
@@ -107,7 +107,6 @@ xf86InfoRec xf86Info = {<br>
.dontZap = FALSE,<br>
.dontZoom = FALSE,<br>
.notrapSignals = FALSE,<br>
- .caughtSignal = FALSE,<br>
.currentScreen = NULL,<br>
#ifdef CSRG_BASED<br>
.consType = -1,<br>
diff --git a/hw/xfree86/common/<wbr>xf86Helper.c b/hw/xfree86/common/<wbr>xf86Helper.c<br>
index 447ed3f8fe..393a7aa881 100644<br>
--- a/hw/xfree86/common/<wbr>xf86Helper.c<br>
+++ b/hw/xfree86/common/<wbr>xf86Helper.c<br>
@@ -1428,12 +1428,6 @@ xf86ServerIsOnlyDetecting(<wbr>void)<br>
return xf86DoConfigure;<br>
}<br>
<br>
-Bool<br>
-xf86CaughtSignal(void)<br>
-{<br>
- return xf86Info.caughtSignal;<br>
-}<br>
-<br>
Bool<br>
xf86GetVidModeAllowNonLocal(<wbr>void)<br>
{<br>
diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c<br>
index 994b63b430..57b38d07e7 100644<br>
--- a/hw/xfree86/common/xf86Init.c<br>
+++ b/hw/xfree86/common/xf86Init.c<br>
@@ -298,16 +298,9 @@ xf86PrivsElevated(void)<br>
}<br>
<br>
static void<br>
-InstallSignalHandlers(void)<br>
+TrapSignals(void)<br>
{<br>
- /*<br>
- * Install signal handler for unexpected signals<br>
- */<br>
- xf86Info.caughtSignal = FALSE;<br>
- if (!xf86Info.notrapSignals) {<br>
- OsRegisterSigWrapper(<wbr>xf86SigWrapper);<br>
- }<br>
- else {<br>
+ if (xf86Info.notrapSignals) {<br>
OsSignal(SIGSEGV, SIG_DFL);<br>
OsSignal(SIGABRT, SIG_DFL);<br>
OsSignal(SIGILL, SIG_DFL);<br>
@@ -423,7 +416,7 @@ InitOutput(ScreenInfo * pScreenInfo, int argc, char **argv)<br>
}<br>
}<br>
<br>
- InstallSignalHandlers();<br>
+ TrapSignals();<br>
<br>
/* Initialise the loader */<br>
LoaderInit();<br>
@@ -960,10 +953,6 @@ ddxGiveUp(enum ExitCode error)<br>
dbus_core_fini();<br>
<br>
xf86CloseLog(error);<br>
-<br>
- /* If an unexpected signal was caught, dump a core for debugging */<br>
- if (xf86Info.caughtSignal)<br>
- OsAbort();<br>
}<br>
<br>
/*<br>
diff --git a/hw/xfree86/common/xf86Priv.h b/hw/xfree86/common/xf86Priv.h<br>
index 22bf5ff240..4fe2b5f336 100644<br>
--- a/hw/xfree86/common/xf86Priv.h<br>
+++ b/hw/xfree86/common/xf86Priv.h<br>
@@ -135,8 +135,6 @@ DoShowOptions(void)<br>
<br>
extern _X_EXPORT void<br>
xf86Wakeup(void *blockData, int err);<br>
-extern _X_HIDDEN int<br>
-xf86SigWrapper(int signo);<br>
extern _X_EXPORT void<br>
xf86HandlePMEvents(int fd, void *data);<br>
extern _X_EXPORT int (*xf86PMGetEventFromOs) (int fd, pmEvent * events,<br>
diff --git a/hw/xfree86/common/<wbr>xf86Privstr.h b/hw/xfree86/common/<wbr>xf86Privstr.h<br>
index e4b479f4f9..c5048a3997 100644<br>
--- a/hw/xfree86/common/<wbr>xf86Privstr.h<br>
+++ b/hw/xfree86/common/<wbr>xf86Privstr.h<br>
@@ -64,7 +64,6 @@ typedef struct {<br>
Bool dontZap;<br>
Bool dontZoom;<br>
Bool notrapSignals; /* don't exit cleanly - die at fault */<br>
- Bool caughtSignal;<br>
<br>
/* graphics part */<br>
ScreenPtr currentScreen;<br>
diff --git a/hw/xfree86/doc/ddxDesign.xml b/hw/xfree86/doc/ddxDesign.xml<br>
index 7579850267..13994f7a91 100644<br>
--- a/hw/xfree86/doc/ddxDesign.xml<br>
+++ b/hw/xfree86/doc/ddxDesign.xml<br>
@@ -2053,16 +2053,6 @@ functions is as follows:<br>
<br>
</para></blockquote><br>
<br>
- <blockquote><para><br>
- <programlisting><br>
- Bool xf86CaughtSignal();<br>
- </programlisting><br>
- <blockquote><para><br>
- Returns <constant>TRUE</constant> if the server has caught a signal,<br>
- and <constant>FALSE</constant> otherwise.<br>
- </para></blockquote><br>
-<br>
- </para></blockquote><br>
</sect2><br>
<br>
<sect2><br>
<span class="gmail-HOEnZb"><font color="#888888">--<br>
2.14.3<br>
<br>
______________________________<wbr>_________________<br>
<a href="mailto:xorg-devel@lists.x.org">xorg-devel@lists.x.org</a>: X.Org development<br>
Archives: <a href="http://lists.x.org/archives/xorg-devel" rel="noreferrer" target="_blank">http://lists.x.org/archives/<wbr>xorg-devel</a><br>
Info: <a href="https://lists.x.org/mailman/listinfo/xorg-devel" rel="noreferrer" target="_blank">https://lists.x.org/mailman/<wbr>listinfo/xorg-devel</a></font></span></blockquote></div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">LGTM.</div><div class="gmail_extra"><br></div>Reviewed-by: Olivier Fourdan <<a href="mailto:ofourdan@redhat.com" target="_blank">ofourdan@redhat.com</a>></div></div>