[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 12:48:52 CET 2010
Greg,
Very clever! Thank you,
Malcolm
----- Original message -----
From: "Greg Ewing" <greg.ewing at canterbury.ac.nz>
To: "zz Python Win32 Newsgroup" <python-win32 at python.org>
Date: Sat, 13 Mar 2010 00:15:19 +1300
Subject: Re: [python-win32] Technique to limit number of instances of
our application under Terminal Server
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
_______________________________________________
python-win32 mailing list
python-win32 at python.org
http://mail.python.org/mailman/listinfo/python-win32
More information about the python-win32
mailing list