From: Eric Wong Date: Thu, 3 Oct 2019 07:21:59 +0000 (+0000) Subject: init: implement locking X-Git-Tag: v1.2.0~57 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=6242da34fbe20940e3e258d2ec80e9aeef0438e1;hp=6242da34fbe20940e3e258d2ec80e9aeef0438e1;p=public-inbox.git init: implement locking First, we use flock(2) to wait on parallel public-inbox-init(1) invocations while we make multiple changes using git-config(1). This flock allows -init processes to wait on each other if using reasonable POSIX filesystems. Then, we also need a git-config(1)-compatible lock to prevent user-invoked git-config(1) processes from clobbering our changes while we're holding the flock. ---