summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-04-14 10:50:24 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-04-14 10:50:24 +0000
commit4334f9613b5fad7a7791d73c3c40bc20c42f077e (patch)
treeaeb7ca419cc144e05557d023e0e98af740714f3b
parent222c6c66ab78b0b7c51074bf1f3949eb4aa4be49 (diff)
parentc3503fcc84eec0bcf857cc744580aa9a4d5dc7eb (diff)
downloadgtk+-4334f9613b5fad7a7791d73c3c40bc20c42f077e.tar.gz
Merge branch 'x11-quiet-exit-3' into 'gtk-3-24'
x11: Be quiet on exit by default See merge request GNOME/gtk!3437
-rw-r--r--gdk/x11/gdkmain-x11.c23
1 files changed, 6 insertions, 17 deletions
diff --git a/gdk/x11/gdkmain-x11.c b/gdk/x11/gdkmain-x11.c
index 64c7cb4302..cd877ce3e4 100644
--- a/gdk/x11/gdkmain-x11.c
+++ b/gdk/x11/gdkmain-x11.c
@@ -240,24 +240,13 @@ gdk_x_io_error (Display *display)
/* This is basically modelled after the code in XLib. We need
* an explicit error handler here, so we can disable our atexit()
* which would otherwise cause a nice segfault.
- * We fprintf(stderr, instead of g_warning() because g_warning()
- * could possibly be redirected to a dialog
+ * We g_debug() instead of g_warning(), because g_warning()
+ * could possibly be redirected to the log
*/
- if (errno == EPIPE)
- {
- g_message ("The application '%s' lost its connection to the display %s;\n"
- "most likely the X server was shut down or you killed/destroyed\n"
- "the application.\n",
- g_get_prgname (),
- display ? DisplayString (display) : gdk_get_display_arg_name ());
- }
- else
- {
- g_message ("%s: Fatal IO error %d (%s) on X server %s.\n",
- g_get_prgname (),
- errno, g_strerror (errno),
- display ? DisplayString (display) : gdk_get_display_arg_name ());
- }
+ g_debug ("%s: Fatal IO error %d (%s) on X server %s.\n",
+ g_get_prgname (),
+ errno, g_strerror (errno),
+ display ? DisplayString (display) : gdk_get_display_arg_name ());
_exit (1);
}