Hi,

On Mon, Jun 13, 2016 at 04:22:39PM -0400, Selva Nair wrote:
> As Windows clears semaphores when all open handles to it are gone, this is
> a problem only when there is one or more other openvpn processes running.
> 
> Any suggestions on how to fix this?

Would "relinquish the semaphore when the initialization is finished, and
re-acuire it when running the netsh.exe commands for route deletion on
tunnel teardown" work?

Aka "while openvpn is running in steady state, no handle exists", so the
semaphore should clear itself.

Not sure I understand the environment well enough to say whether this 
might work or not...


> Bonus question: write a unit test that anticipates this and catches it :-)

All our units need to be perfect, so this just cannot happen! ;-)

gert
-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             g...@greenie.muc.de
fax: +49-89-35655025                        g...@net.informatik.tu-muenchen.de

Attachment: signature.asc
Description: PGP signature

Reply via email to