diff options
| author | edman007 <edman007@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2009-11-21 14:49:34 +0000 | 
|---|---|---|
| committer | edman007 <edman007@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2009-11-21 14:49:34 +0000 | 
| commit | 42d2deefb2977d1ef5e437eb5263f7796002a13d (patch) | |
| tree | 4cdcff1b520c06f40dc1a6baa1e69fd3364c77df /plugin_dbus.c | |
| parent | cd705f84010afaa24ec457a90de61f2b4635ea69 (diff) | |
| download | lcd4linux-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
Diffstat (limited to 'plugin_dbus.c')
| -rw-r--r-- | plugin_dbus.c | 6 | 
1 files changed, 6 insertions, 0 deletions
| 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);      } | 
