Mercurial > hg
diff hgext/bugzilla.py @ 28196:87de4a22e8c2
chg: hold a lock file before connected to server
This is a part of the one server per config series. In multiple-server setup,
multiple clients may try to start different servers (on demand) at the same
time. The old lock will not guarantee a client to connect to the server it
just started, and is not crash friendly.
This patch addressed above issues by using flock and does not release the lock
until the client actually connects to the server or times out.
author | Jun Wu <quark@fb.com> |
---|---|
date | Tue, 16 Feb 2016 11:08:52 +0000 |
parents | 2f0384242b35 |
children | 9e1c9f016b72 |