[at-spi2-core] Exit without a SIGABRT when unable to open X display
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core] Exit without a SIGABRT when unable to open X display
- Date: Mon, 10 Sep 2012 17:02:19 +0000 (UTC)
commit 35e3205bf55c3c818524dcb009dae41620b57e96
Author: Mike Gorse <mgorse suse com>
Date: Mon Sep 10 12:00:19 2012 -0500
Exit without a SIGABRT when unable to open X display
At-spi2-registryd was calling g_error when unable to open the default
display, which led to a SIGABRT and a core dump. This behavior is
inconsistent with what is generally done by GNOME apps, so let's call
g_warning() and exit(1) instead.
https://bugzilla.gnome.org/show_bug.cgi?id=660407
registryd/display.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/registryd/display.c b/registryd/display.c
index 730b61c..2ba781c 100644
--- a/registryd/display.c
+++ b/registryd/display.c
@@ -43,8 +43,8 @@ Display *spi_set_display (const char *display_name)
default_display = XOpenDisplay (display_name);
if (!default_display)
{
- g_error ("AT-SPI: Cannot open default display");
- return NULL;
+ g_warning ("AT-SPI: Cannot open default display");
+ exit (1);
}
return default_display;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]