checking that process binds a port, fuser functionality

Roy Smith roy at
Tue Aug 3 13:06:27 CEST 2010

In article <pan.2010. at>,
 Nobody <nobody at> 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