[python-win32] Technique to limit number of instances of our application under Terminal Server
python at bdurham.com
python at bdurham.com
Fri Mar 12 15:08:28 CET 2010
Hi Link,
> If the limit is one, then a lazy and dirty way is to bind to a tcp
port (just pick a fixed one that's not used by other services - you
could make it configurable), and exit if the bind fails.
An excellent idea. I'm leaning towards either this idea or a
collection of mutexes.
Thanks for your feedback,
Mal
More information about the python-win32
mailing list