[at-spi2-core] BGO#660947: Gracefully exit when already running, rather than SIGABRT
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core] BGO#660947: Gracefully exit when already running, rather than SIGABRT
- Date: Thu, 6 Oct 2011 15:44:16 +0000 (UTC)
commit 6e8f8ad8a3849f9adb1b06dbf1b5632b51fa0586
Author: Mike Gorse <mgorse novell com>
Date: Thu Oct 6 10:44:40 2011 -0500
BGO#660947: Gracefully exit when already running, rather than SIGABRT
registryd/registry-main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/registryd/registry-main.c b/registryd/registry-main.c
index abc8e4e..c58929d 100644
--- a/registryd/registry-main.c
+++ b/registryd/registry-main.c
@@ -225,7 +225,7 @@ main (int argc, char **argv)
ret = dbus_bus_request_name(bus, dbus_name, DBUS_NAME_FLAG_DO_NOT_QUEUE, &error);
if (ret == DBUS_REQUEST_NAME_REPLY_EXISTS)
{
- g_error("Could not obtain D-Bus name - %s\n", dbus_name);
+ exit (0); /* most likely already running */
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]