aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredman007 <edman007@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2009-11-21 14:49:34 +0000
committeredman007 <edman007@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2009-11-21 14:49:34 +0000
commit42d2deefb2977d1ef5e437eb5263f7796002a13d (patch)
tree4cdcff1b520c06f40dc1a6baa1e69fd3364c77df
parentcd705f84010afaa24ec457a90de61f2b4635ea69 (diff)
downloadlcd4linux-42d2deefb2977d1ef5e437eb5263f7796002a13d.tar.gz
* Fix segfault on shutdown in drv_picoLCDGraphic.c
* Prevent dbus from exiting the program when compiled with -DDEBUG git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1068 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rw-r--r--drv_picoLCDGraphic.c4
-rw-r--r--plugin_dbus.c6
2 files changed, 8 insertions, 2 deletions
diff --git a/drv_picoLCDGraphic.c b/drv_picoLCDGraphic.c
index 0577337..5e7e159 100644
--- a/drv_picoLCDGraphic.c
+++ b/drv_picoLCDGraphic.c
@@ -608,8 +608,6 @@ int drv_pLG_quit(const int quiet)
info("%s: shutting down.", Name);
- drv_generic_graphic_quit();
-
/* clear display */
drv_pLG_clear();
@@ -625,6 +623,8 @@ int drv_pLG_quit(const int quiet)
BufPtr = NULL;
}
+ drv_generic_graphic_quit();
+
return (0);
}
diff --git a/plugin_dbus.c b/plugin_dbus.c
index da93949..b40c3b6 100644
--- a/plugin_dbus.c
+++ b/plugin_dbus.c
@@ -510,6 +510,9 @@ static int lcd_dbus_init(void)
dbus_error_free(&err);
success &= 1;
} else {
+#ifdef DEBUG
+ dbus_connection_set_exit_on_disconnect(sessconn, FALSE);
+#endif
setup_dbus_events(sessconn);
}
@@ -518,6 +521,9 @@ static int lcd_dbus_init(void)
info("[DBus] Error connecting to the dbus system bus: %s\n", err.message);
success &= 2;
} else {
+#ifdef DEBUG
+ dbus_connection_set_exit_on_disconnect(sysconn, FALSE);
+#endif
setup_dbus_events(sysconn);
}