summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-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;