projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16974ec
)
Fixed tinc-up script calling on Win32.
author
Borg
<borg@uu3.net>
Sat, 28 Jun 2014 12:58:09 +0000
(14:58 +0200)
committer
Guus Sliepen
<guus@sliepen.org>
Sat, 28 Jun 2014 20:19:16 +0000
(21:19 +0100)
It was called too early. Simple sleep fixes the issue.
src/net_setup.c
patch
|
blob
|
history
diff --git
a/src/net_setup.c
b/src/net_setup.c
index
fa4e986
..
b117443
100644
(file)
--- a/
src/net_setup.c
+++ b/
src/net_setup.c
@@
-713,6
+713,12
@@
static bool setup_myself(void) {
xasprintf(&envp[2], "INTERFACE=%s", iface ? : "");
xasprintf(&envp[3], "NAME=%s", myself->name);
+#ifdef HAVE_MINGW
+ Sleep(1000);
+#endif
+#ifdef HAVE_CYGWIN
+ sleep(1);
+#endif
execute_script("tinc-up", envp);
for(i = 0; i < 4; i++)