]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
/Really/ exit cleanly if rhgb isn't present on kernel cmdline
authorRay Strode <rstrode@redhat.com>
Sun, 22 Jun 2008 05:19:18 +0000 (01:19 -0400)
committerRay Strode <rstrode@redhat.com>
Sun, 22 Jun 2008 05:19:18 +0000 (01:19 -0400)
Unlike b7f4399294fad3d70029526cd7334c50d8673214 which was
broken

src/main.c

index f554ce05af8c045e528f2c6c107402e990d9a660..e855f68d0308fb18118bedbae90574d049554364 100644 (file)
@@ -454,7 +454,10 @@ main (int    argc,
   if (!initialize_environment (&state))
     {
       if (errno == 0)
-        return 0;
+        {
+          ply_detach_daemon (daemon_handle, 0);
+          return 0;
+        }
 
       ply_error ("could not setup basic operating environment: %m");
       ply_detach_daemon (daemon_handle, EX_OSERR);