summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2015-04-28 12:57:15 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2015-06-02 14:36:59 +0100
commit83ba11f7e30052e503221cf87355b18e818fb247 (patch)
tree51ad4a5d2244f48e2067b325dbe09cbcd78d6927
parent588367a62bbb5a7a0457182dae55966a9e264274 (diff)
Fix -silent-dup-error
Looks like this has been broken since 042c6d861f7bb7038ddcdd6b59766fd9094d0e52 "Use ErrorFSigSafe from FatalError and it's friends" on 2013-04-30. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
-rw-r--r--hw/xwin/winerror.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/hw/xwin/winerror.c b/hw/xwin/winerror.c
index 47ac20246..8d8c0336e 100644
--- a/hw/xwin/winerror.c
+++ b/hw/xwin/winerror.c
@@ -48,16 +48,6 @@ OsVendorVErrorF(const char *pszFormat, va_list va_args)
pthread_mutex_lock(&s_pmPrinting);
#endif
- /* If we want to silence it,
- * detect if we are going to abort due to duplication error */
- if (g_fSilentDupError) {
- if ((strcmp(pszFormat, "InitOutput - Duplicate invocation on display number: %s. Exiting.\n") == 0)
- || (strcmp(pszFormat, "Server is already active for display %s\n%s %s\n%s\n") == 0)
- || (strcmp(pszFormat, "MakeAllCOTSServerListeners: server already running\n") == 0)) {
- g_fSilentFatalError = TRUE;
- }
- }
-
/* Print the error message to a log file, could be stderr */
LogVWrite(0, pszFormat, va_args);
@@ -79,6 +69,16 @@ OsVendorFatalError(const char *f, va_list args)
{
char errormsg[1024] = "";
+ /* If we want to silence it,
+ * detect if we are going to abort due to duplication error */
+ if (g_fSilentDupError) {
+ if ((strcmp(f, "InitOutput - Duplicate invocation on display number: %s. Exiting.\n") == 0)
+ || (strcmp(f, "Server is already active for display %s\n%s %s\n%s\n") == 0)
+ || (strcmp(f, "MakeAllCOTSServerListeners: server already running\n") == 0)) {
+ g_fSilentFatalError = TRUE;
+ }
+ }
+
/* Don't give duplicate warning if UseMsg was called */
if (g_fSilentFatalError)
return;