(main): Move loginit() to after the getopt(), so the -D option will

take affect for the log file.  Otherwise the server.log will be in
default data directory compiled into the server.
This commit is contained in:
Ron Koenderink 2005-02-21 18:17:11 +00:00
parent d0295935a4
commit 6e9a69241e

View file

@ -118,8 +118,6 @@ main(int argc, char **argv)
_fmode = _O_BINARY;
#endif
loginit("server");
mainpid = getpid();
#if defined(_WIN32)
@ -173,6 +171,8 @@ main(int argc, char **argv)
}
}
loginit("server");
#if defined(_WIN32)
if ((debug || datadir_set || config_file != NULL) &&
remove_service_set) {