From: Borg Date: Sat, 28 Jun 2014 12:58:09 +0000 (+0200) Subject: Fixed tinc-up script calling on Win32. X-Git-Tag: release-1.0.25~8 X-Git-Url: https://git.librecmc.org/?p=oweals%2Ftinc.git;a=commitdiff_plain;h=f61fd437ca36ff03cd669726894a09ae4e128427 Fixed tinc-up script calling on Win32. It was called too early. Simple sleep fixes the issue. --- diff --git a/src/net_setup.c b/src/net_setup.c index fa4e986..b117443 100644 --- 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++)