(main,close_files,loc_NT_Term,empth_exit):

Add Windows Service to the server.
This includes adding install service and remove service option.
Move the start code from main to separate function.
Make close_files() and loc_NT_Term() global.
Move disassoc() to be earlier in the startup sequence.
This commit is contained in:
Ron Koenderink 2004-12-21 03:10:30 +00:00
parent 99ad950d9c
commit e342a73130
6 changed files with 416 additions and 31 deletions

View file

@ -48,8 +48,13 @@
#include "commodity.h"
/* src/server/main.c */
extern void close_files(void);
extern void panic(int sig);
extern void shutdwn(int sig);
extern void start_server(int, char *);
#if defined(_WIN32)
extern void loc_NTTerm(void);
#endif
/*****************************************************************************
* src/lib/ * / *.c
@ -270,6 +275,10 @@ extern int command(void);
/* recvclient.c */
extern int recvclient(s_char *, int);
/* service.c */
extern int service_stopped(void);
/* more in service.h */
/*
* src/lib/subs/ *.c
*/