[PATCH 4 of 7] chgserver: use relative path at socket.bind

Jun Wu quark at fb.com
Mon Apr 4 11:25:36 EDT 2016


On 04/04/2016 02:03 PM, Yuya Nishihara wrote:
> This is common issue on using domain socket. Can it be a utility function?

It is not strictly equivalent to bind as Simon pointed out the EPERM issue.

chg needs extra logic before os.fchdir(bakwdfd), namely rename and we may want
to move symlink here as well.

In summary, it's not that easy to write a clean utility function for this use
case.


More information about the Mercurial-devel mailing list