summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2008-06-22 00:36:23 -0400
committerRay Strode <rstrode@redhat.com>2008-06-22 00:36:23 -0400
commitb7f4399294fad3d70029526cd7334c50d8673214 (patch)
tree88e1514652b5a3efb1f5450682337658b5334a9f
parent1fd28b7e97fe048ad1757e1c4f0f082e775fc73e (diff)
downloadplymouth-b7f4399294fad3d70029526cd7334c50d8673214.tar.gz
plymouth-b7f4399294fad3d70029526cd7334c50d8673214.tar.xz
plymouth-b7f4399294fad3d70029526cd7334c50d8673214.zip
Exit cleanly if rhgb is not on the command line
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 26ed001..b534129 100644
--- a/src/main.c
+++ b/src/main.c
@@ -453,6 +453,9 @@ main (int argc,
*/
if (!initialize_environment (&state))
{
+ if (errno == 0)
+ return 0;
+
ply_error ("could not setup basic operating environment: %m");
ply_detach_daemon (daemon_handle, EX_OSERR);
return EX_OSERR;