Return non-zero exit code when encountering configuration errors during startup.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 5 Jul 2015 12:42:18 +0000 (14:42 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 5 Jul 2015 12:42:18 +0000 (14:42 +0200)
src/tincd.c

index fda20c4b4086a5d7d9260bd1d6db9ccbaf310e1b..c3cae5dbd89f2055f68064516de6a2440aeec4ee 100644 (file)
@@ -97,7 +97,7 @@ char *pidfilename = NULL;                     /* pid file location */
 char *logfilename = NULL;                      /* log file location */
 char **g_argv;                                 /* a copy of the cmdline arguments */
 
-static int status;
+static int status = 1;
 
 static struct option const long_options[] = {
        {"config", required_argument, NULL, 'c'},