[packagekit] packagekitd exit

Richard Hughes hughsient at gmail.com
Tue Jan 13 02:07:26 PST 2009


On Sun, 2009-01-11 at 16:57 -0800, Daniel Nicoletti wrote:
> Hi, i added a egg_debug message at
> backend_destroy and i can't see it when it
> closes by a timeout

Yup, you found another bug, well done:

commit 0974d29e7b29c088006798d91be63ef384f10911
Author: Richard Hughes <richard at hughsie.com>
Date:   Tue Jan 13 10:06:29 2009 +0000

    bugfix: ensure we call the backend finalise method when the daemon times out

diff --git a/src/pk-main.c b/src/pk-main.c
index 68a1e3d..9212a23 100644
--- a/src/pk-main.c
+++ b/src/pk-main.c
@@ -135,7 +135,7 @@ pk_main_timeout_check_cb (PkEngine *engine)
        egg_debug ("idle is %i", idle);
        if (idle > exit_idle_time) {
                egg_warning ("exit!!");
-               exit (0);
+               g_main_loop_quit (loop);
        }
        return TRUE;
 }

Richard.





More information about the PackageKit mailing list