]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/main.c
Ultra-simplification of the build system for the text client.
[citadel.git] / webcit-ng / main.c
index 69f4ecad8cb30f93867e020af95a800f6eb8a466..50c26160c29f569259bab52eff19f8099542aba5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Main entry point for the program.
  *
- * Copyright (c) 1996-2017 by the citadel.org team
+ * Copyright (c) 1996-2018 by the citadel.org team
  *
  * This program is open source software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 3.
@@ -105,7 +105,7 @@ int main(int argc, char **argv)
 
        /* Tell 'em who's in da house */
        syslog(LOG_NOTICE, "MAKE WEBCIT GREAT AGAIN!");
-       syslog(LOG_NOTICE, "Copyright (C) 1996-2017 by the citadel.org team");
+       syslog(LOG_NOTICE, "Copyright (C) 1996-2018 by the citadel.org team");
        syslog(LOG_NOTICE, " ");
        syslog(LOG_NOTICE, "This program is open source software: you can redistribute it and/or");
        syslog(LOG_NOTICE, "modify it under the terms of the GNU General Public License, version 3.");
@@ -125,7 +125,7 @@ int main(int argc, char **argv)
 
        /* Go into the background if we were asked to run as a daemon */
        if (running_as_daemon) {
-               daemon(0, 0);
+               daemon(1, 0);
                if (pid_file != NULL) {
                        FILE *pfp = fopen(pid_file, "w");
                        if (pfp) {