[dconf] printf() and exit() instead of g_error()



commit 6b884f649e0dcde32bfb5497bbc8dced0c9a6b89
Author: Ryan Lortie <desrt desrt ca>
Date:   Mon Aug 23 10:32:02 2010 -0400

    printf() and exit() instead of g_error()
    
    Stops crash-detectors from seeing the SIGABRT

 service/service.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/service/service.c b/service/service.c
index c498b82..aca0029 100644
--- a/service/service.c
+++ b/service/service.c
@@ -21,6 +21,7 @@
 
 #include <gio/gio.h>
 #include <string.h>
+#include <stdlib.h>
 #include <stdio.h>
 
 #include "dconf-interfaces.h"
@@ -398,7 +399,8 @@ name_lost (GDBusConnection *connection,
            const gchar     *name,
            gpointer         user_data)
 {
-  g_error ("unable to acquire name: '%s'", name);
+  fprintf (stderr, "unable to acquire name: '%s'", name);
+  exit (1);
 }
 
 int



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]