From: Cosimo Cecchi Date: Mon, 10 Sep 2012 20:33:53 +0000 (-0400) Subject: main: silently succeed if plymouthd is started a second time X-Git-Tag: 0.8.8~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5efdca11bd3a4f077306ee96a9ae84619d973669;p=thirdparty%2Fplymouth.git main: silently succeed if plymouthd is started a second time 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. --- diff --git a/src/main.c b/src/main.c index 78601172..e1583bc9 100644 --- a/src/main.c +++ b/src/main.c @@ -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 ();