projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix compilation of UML and VDE device support.
[tinc]
/
src
/
process.c
diff --git
a/src/process.c
b/src/process.c
index
37ba84b
..
04c19ed
100644
(file)
--- a/
src/process.c
+++ b/
src/process.c
@@
-25,7
+25,9
@@
#include "control.h"
#include "device.h"
#include "edge.h"
#include "control.h"
#include "device.h"
#include "edge.h"
+#include "event.h"
#include "logger.h"
#include "logger.h"
+#include "names.h"
#include "net.h"
#include "node.h"
#include "process.h"
#include "net.h"
#include "node.h"
#include "process.h"
@@
-37,17
+39,12
@@
bool do_detach = true;
bool sigalrm = false;
bool do_detach = true;
bool sigalrm = false;
-extern char *identname;
extern char **g_argv;
extern bool use_logfile;
/* Some functions the less gifted operating systems might lack... */
#ifdef HAVE_MINGW
extern char **g_argv;
extern bool use_logfile;
/* Some functions the less gifted operating systems might lack... */
#ifdef HAVE_MINGW
-extern char *identname;
-extern char *program_name;
-extern char **g_argv;
-
static SC_HANDLE manager = NULL;
static SC_HANDLE service = NULL;
static SERVICE_STATUS status = {0};
static SC_HANDLE manager = NULL;
static SC_HANDLE service = NULL;
static SERVICE_STATUS status = {0};
@@
-127,7
+124,7
@@
DWORD WINAPI controlhandler(DWORD request, DWORD type, LPVOID boe, LPVOID bah) {
return ERROR_CALL_NOT_IMPLEMENTED;
}
return ERROR_CALL_NOT_IMPLEMENTED;
}
- event_
loopexit(NULL
);
+ event_
exit(
);
status.dwWaitHint = 30000;
status.dwCurrentState = SERVICE_STOP_PENDING;
SetServiceStatus(statushandle, &status);
status.dwWaitHint = 30000;
status.dwCurrentState = SERVICE_STOP_PENDING;
SetServiceStatus(statushandle, &status);