commit - f1e20d011992c8e84558cc639c80e53420e2054b
commit + aada9b0335c17c413099d33e3bf242a160871115
blob - f4bc8c3f50a4676acbe25f2c6fcc0beae51c08d9
blob + 506e9b231e26359c8045457966e9c33cbfa2f667
--- gotwebd/gotwebd.c
+++ gotwebd/gotwebd.c
if ((argv0 = argv[0]) == NULL)
argv0 = "gotwebd";
+
+ /* log to stderr until daemonized */
+ log_init(1, LOG_DAEMON);
env = calloc(1, sizeof(*env));
if (env == NULL)
fatal("%s: calloc", __func__);
config_init(env);
- /* log to stderr until daemonized */
- log_init(1, LOG_DAEMON);
-
while ((ch = getopt(argc, argv, "D:df:nSv")) != -1) {
switch (ch) {
case 'D':