checking that process binds a port, fuser functionality
Roy Smith
roy at panix.com
Tue Aug 3 07:06:27 EDT 2010
In article <pan.2010.08.03.08.47.38.391000 at nowhere.com>,
Nobody <nobody at nowhere.com> wrote:
> On Mon, 02 Aug 2010 23:27:37 +0200, Zdenek Maxa wrote:
>
> > I need to start a process (using subprocess.Popen()) and wait until the
> > new process either fails or successfully binds a specified port.
>
> If you just need to wait until *something* is listening on that port, you
> could try connect()ing to it.
This certainly seems like the logical way to me. It's straight-forward,
simple, and portable.
More information about the Python-list
mailing list