core: gracefully handle SIGTERM and SIGINT by shutting down cleanly

This commit is contained in:
Dan Williams
2009-06-18 23:22:07 -04:00
parent aa8d3241e5
commit 983e3c9947
2 changed files with 28 additions and 6 deletions

View File

@@ -140,7 +140,7 @@ mm_manager_new (DBusGConnection *bus)
if (manager) {
MMManagerPrivate *priv = MM_MANAGER_GET_PRIVATE (manager);
priv->connection = bus;
priv->connection = dbus_g_connection_ref (bus);
dbus_g_connection_register_g_object (priv->connection,
MM_DBUS_PATH,
G_OBJECT (manager));