[PATCH 2 of 3] chg: start server at a unique address
quark at fb.com
Mon Dec 19 00:50:55 EST 2016
Excerpts from timeless's message of 2016-12-18 23:52:05 -0500:
> Jun Wu wrote:
> > Pid namespace breaks mercurial lock, which is a symlink with the content
> > "host:pid".
> Would adjusting the format to:
> host:pid:starttime:boottime fix this?
No. A pid number in a pid namespace is highly likely to be invalid in
another pid ns. So hg just thinks the process who held the lock is dead,
and ignores the lock.
> Sadly, it seems like process start time is actually stored as jiffies
> since system boot on Linux, and NTP can make canonicalizing that value
> /somewhat/ flaky . Hopefully, there'd be some way to make this work
>  http://linuxcommando.blogspot.ca/2008/09/how-to-get-process-start-date-and-time.html
More information about the Mercurial-devel