dlan 15/07/14 10:21:10 Added: thermald-1.4.2-terminate.patch Log: version bump & fix termination bug, bug 550880 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0xAABEFD55)
Revision Changes Path 1.1 sys-power/thermald/files/thermald-1.4.2-terminate.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/thermald/files/thermald-1.4.2-terminate.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/thermald/files/thermald-1.4.2-terminate.patch?rev=1.1&content-type=text/plain Index: thermald-1.4.2-terminate.patch =================================================================== diff --git a/src/main.cpp b/src/main.cpp index 2cf4864..49489d2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -129,6 +129,11 @@ bool check_thermald_running() { return false; } +void thd_main_quit(void) { + if (g_main_loop) + g_main_loop_quit(g_main_loop); +} + // SIGTERM & SIGINT handler void sig_int_handler(int signum) { thd_engine->thd_engine_terminate(); diff --git a/src/thd_engine.cpp b/src/thd_engine.cpp index c7352ac..4fc5ad6 100644 --- a/src/thd_engine.cpp +++ b/src/thd_engine.cpp @@ -348,10 +348,13 @@ void cthd_engine::process_pref_change() { } } +extern void thd_main_quit(void); void cthd_engine::thd_engine_terminate() { send_message(TERMINATE, 0, NULL); sleep(1); process_terminate(); + + thd_main_quit(); } int cthd_engine::thd_engine_set_user_max_temp(const char *zone_type,
