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 fda20c4..c3cae5d 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'},