* 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
This commit is contained in:
edman007
2009-11-21 14:49:34 +00:00
parent cd705f8401
commit 42d2deefb2
2 changed files with 8 additions and 2 deletions

View File

@@ -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);
}