projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use a mutex to allow the TAP reader to process packets faster on Windows.
[tinc]
/
src
/
tincd.c
diff --git
a/src/tincd.c
b/src/tincd.c
index
a13e266
..
b2e055c
100644
(file)
--- a/
src/tincd.c
+++ b/
src/tincd.c
@@
-115,6
+115,7
@@
static struct option const long_options[] = {
#ifdef HAVE_MINGW
static struct WSAData wsa_state;
+CRITICAL_SECTION mutex;
#endif
static void usage(bool status)
@@
-568,6
+569,8
@@
int main(int argc, char **argv)
int main2(int argc, char **argv)
{
+ InitializeCriticalSection(&mutex);
+ EnterCriticalSection(&mutex);
#endif
if(!detach())