]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
main: silently succeed if plymouthd is started a second time
authorCosimo Cecchi <cosimoc@gnome.org>
Mon, 10 Sep 2012 20:33:53 +0000 (16:33 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 10 Sep 2012 21:00:23 +0000 (17:00 -0400)
Make plymouthd idempotent to multiple calls.  This will make
it easier to integrate with boot scripts that start plymouthd
in the initrd and from the main fs.

src/main.c

index 7860117287f2b16fbc8c4bee62edd84a3cd33c73..e1583bc910dcdb1ef0261a0614bc5e8860dfcec7 100644 (file)
@@ -2485,8 +2485,8 @@ main (int    argc,
       ply_trace ("plymouthd is already running");
 
       if (daemon_handle != NULL)
-        ply_detach_daemon (daemon_handle, EX_UNAVAILABLE);
-      return EX_UNAVAILABLE;
+        ply_detach_daemon (daemon_handle, EX_OK);
+      return EX_OK;
     }
 
   state.boot_buffer = ply_buffer_new ();