(main,service_main) [_WIN32]: Fix config_file for WIN32.

(main,service_main,empth_exit) [_WIN32]: Add daemon flag.
Separate the debug_flag into two separate flags, one for
debugging (debug) and controlling the daemon processing
(daemon).
This commit is contained in:
Ron Koenderink 2005-03-06 19:53:14 +00:00
parent 830c171dd2
commit d1d7028fc7
4 changed files with 20 additions and 20 deletions

View file

@ -39,11 +39,8 @@
#include "../gen/getopt.h"
#include "optlist.h"
char *config_file = NULL;
int
install_service(char *program_name, char *service_name, int datadir_set)
install_service(char *program_name, char *service_name, int datadir_set, char *config_file)
{
char strDir[1024];
HANDLE schSCManager,schService;
@ -219,6 +216,7 @@ service_main(DWORD argc, LPTSTR *argv)
int op;
s_char tbuf[256];
DWORD status;
char *config_file = NULL;
optind = 1;
opterr = 1;