Comment 4 for bug 664376

Revision history for this message
John A Meinel (jameinel) wrote :

We use 0 so that we don't clash with any other services that might be running.

'bzr serve' prints out what port it is running on, so we spawn it, read what port to talk to it, and go on with our lives.

Other methods of doing this are, allocate a socket but don't actually listen to it. Then you know it is available and force it on the child process.