]> git.pld-linux.org Git - packages/ConsoleKit.git/commitdiff
- don't take bus name until ready (https://bugs.freedesktop.org/show_bug.cgi?id=25744)
authorMarcin Banasiak <marcin.banasiak@gmail.com>
Wed, 17 Mar 2010 07:46:30 +0000 (07:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ConsoleKit-reorder-initialization.patch -> 1.1

ConsoleKit-reorder-initialization.patch [new file with mode: 0644]

diff --git a/ConsoleKit-reorder-initialization.patch b/ConsoleKit-reorder-initialization.patch
new file mode 100644 (file)
index 0000000..f65abd5
--- /dev/null
@@ -0,0 +1,40 @@
+diff -up ConsoleKit-0.4.1/src/main.c.reorder-initialization ConsoleKit-0.4.1/src/main.c
+--- ConsoleKit-0.4.1/src/main.c.reorder-initialization 2009-12-18 14:51:38.821212946 -0500
++++ ConsoleKit-0.4.1/src/main.c        2009-12-18 14:52:19.246211176 -0500
+@@ -294,11 +294,19 @@ main (int    argc,
+         setup_debug_log (debug);
++        g_debug ("initializing console-kit-daemon %s", VERSION);
++
+         connection = get_system_bus ();
+         if (connection == NULL) {
+                 goto out;
+         }
++        manager = ck_manager_new ();
++
++        if (manager == NULL) {
++                goto out;
++        }
++
+         bus_proxy = get_bus_proxy (connection);
+         if (bus_proxy == NULL) {
+                 g_warning ("Could not construct bus_proxy object; bailing out");
+@@ -310,16 +318,8 @@ main (int    argc,
+                 goto out;
+         }
+-        g_debug ("initializing console-kit-daemon %s", VERSION);
+-
+         create_pid_file ();
+-        manager = ck_manager_new ();
+-
+-        if (manager == NULL) {
+-                goto out;
+-        }
+-
+         loop = g_main_loop_new (NULL, FALSE);
+         g_signal_connect (bus_proxy,
This page took 0.058352 seconds and 4 git commands to generate.