[PATCH 3 of 3] chg: hold a lock file before connected to server

Matt Mackall mpm at selenic.com
Mon Feb 29 15:40:13 EST 2016


On Tue, 2016-02-16 at 11:12 +0000, Jun Wu wrote:
> chg: hold a lock file before connected to server

> +	int r = flock(opts->lockfd, LOCK_EX);

You're aware that this won't work on many (most?) network filesystems or on non-
Unix systems, right? Seems a pretty unfortunate choice.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial-devel mailing list