Eliminate the use of LOG_PERROR. Not all platforms have it.
authorArt Cancro <ajc@citadel.org>
Mon, 12 Feb 2007 16:48:52 +0000 (16:48 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 12 Feb 2007 16:48:52 +0000 (16:48 +0000)
citadel/server_main.c

index c46f80a37b0919bd21923156471b847533db5811..568467fd437e9c829af3def6a5b40237cfc37f7a 100644 (file)
@@ -160,12 +160,7 @@ int main(int argc, char **argv)
         * facilities when we need to...
         */
        if (enable_syslog) {
-               if (running_as_daemon) {
-                       openlog("citadel", LOG_NDELAY, 0);
-               }
-               else {
-                       openlog("citadel", LOG_PERROR|LOG_NDELAY, 0);
-               }
+               openlog("citadel", LOG_NDELAY, 0);
                setlogmask(LOG_UPTO(verbosity));
        }