[gtk+] Call _exit instead of exit from X error handlers
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Call _exit instead of exit from X error handlers
- Date: Fri, 1 Apr 2011 00:00:11 +0000 (UTC)
commit 31c036b9b44a9d14f878df8804fdaf16c922f376
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Mar 31 19:59:00 2011 -0400
Call _exit instead of exit from X error handlers
This is because running atexit() handlers from there is
usually bad news.
https://bugzilla.gnome.org/show_bug.cgi?id=646338
gdk/x11/gdkdisplay-x11.c | 2 +-
gdk/x11/gdkmain-x11.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c
index 2911a3a..c4d7763 100644
--- a/gdk/x11/gdkdisplay-x11.c
+++ b/gdk/x11/gdkdisplay-x11.c
@@ -2372,7 +2372,7 @@ _gdk_x11_display_error_event (GdkDisplay *display,
#else /* !G_ENABLE_DEBUG */
g_warning ("%s\n", msg);
- exit (1);
+ _exit (1);
#endif /* G_ENABLE_DEBUG */
}
}
diff --git a/gdk/x11/gdkmain-x11.c b/gdk/x11/gdkmain-x11.c
index e4cce5f..dc57ce2 100644
--- a/gdk/x11/gdkmain-x11.c
+++ b/gdk/x11/gdkmain-x11.c
@@ -265,7 +265,7 @@ gdk_x_io_error (Display *display)
display ? DisplayString (display) : gdk_get_display_arg_name ());
}
- exit(1);
+ _exit (1);
}
/* X error handler. Keep the name the same because people are used to
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]