summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2008-06-22 01:19:18 -0400
committerRay Strode <rstrode@redhat.com>2008-06-22 01:19:18 -0400
commitcc0fc4e577e4f397e7115eabfa74ce2f2629f29c (patch)
tree79455a8ccacbf2b914bda63641dc11d105ef92d8
parenta5eb75a75a00c5a8b459c57e5042c0a63b969eea (diff)
downloadplymouth-cc0fc4e577e4f397e7115eabfa74ce2f2629f29c.tar.gz
plymouth-cc0fc4e577e4f397e7115eabfa74ce2f2629f29c.tar.xz
plymouth-cc0fc4e577e4f397e7115eabfa74ce2f2629f29c.zip
/Really/ exit cleanly if rhgb isn't present on kernel cmdline
Unlike b7f4399294fad3d70029526cd7334c50d8673214 which was broken
-rw-r--r--src/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index f554ce0..e855f68 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);