mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
* 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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user