[python-win32] Technique to limit number of instances of our application under Terminal Server

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Mar 12 12:15:19 CET 2010


Here's another possible solution. Each process tries to open a
socket connection to a server process. When the maximum number of
processes are connected, the server stops accepting connections.

The server also selects all of its open connections for reading.
When a process dies, the server will notice because it will
see an EOF condition on its connection.

-- 
Greg



More information about the python-win32 mailing list