[tracker/libtracker-miner] Call exit() if we can't register the object with dbus
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/libtracker-miner] Call exit() if we can't register the object with dbus
- Date: Fri, 28 Aug 2009 10:26:02 +0000 (UTC)
commit 248504ebc1431688029ef05a07be32b4a0321980
Author: Martyn Russell <martyn lanedo com>
Date: Fri Aug 28 11:21:22 2009 +0100
Call exit() if we can't register the object with dbus
src/libtracker-miner/tracker-miner.c | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner.c b/src/libtracker-miner/tracker-miner.c
index 1839501..48104b2 100644
--- a/src/libtracker-miner/tracker-miner.c
+++ b/src/libtracker-miner/tracker-miner.c
@@ -20,6 +20,8 @@
#include "config.h"
+#include <stdlib.h>
+
#include <libtracker-common/tracker-dbus.h>
#include "tracker-marshal.h"
@@ -87,7 +89,6 @@ static void miner_get_property (GObject *object,
GParamSpec *pspec);
static void miner_finalize (GObject *object);
static void miner_constructed (GObject *object);
-static gboolean terminate_miner_cb (TrackerMiner *miner);
static void dbus_data_destroy (gpointer data);
static DBusData * dbus_data_create (TrackerMiner *miner,
const gchar *name);
@@ -319,7 +320,7 @@ miner_constructed (GObject *object)
if (G_UNLIKELY (!data)) {
g_critical ("Miner could not register object on DBus session");
- g_idle_add ((GSourceFunc) terminate_miner_cb, miner);
+ exit (EXIT_FAILURE);
return;
}
@@ -336,14 +337,6 @@ tracker_miner_error_quark (void)
}
static gboolean
-terminate_miner_cb (TrackerMiner *miner)
-{
- g_signal_emit (miner, signals[TERMINATED], 0);
-
- return TRUE;
-}
-
-static gboolean
dbus_register_service (DBusGProxy *proxy,
const gchar *name)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]