Re: [PATCH 18/19] index-helper: autorun
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Mar 17, 2016, 13:02 UTC
- Message-ID
- <CACsJy8AsJKmsPm8Y1LRZdmyH60n3OT5X=42RGK5GXNBDfn8j8g@mail.gmail.com>
- In-Reply-To
- <alpine.DEB.2.20.1603161923380.4690@virtualbox>
On Thu, Mar 17, 2016 at 1:27 AM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 5 quoted lines
> I am much more concerned about concurrent accesses and the communication > between the Git processes and the index-helper. Writing to the .pid file > sounds very fragile to me, in particular when multiple processes can poke > the index-helper in succession and some readers are unaware that the index > is being refreshed.
It's not that bad. We should have protection in place to deal with this and fall back to reading directly from file when things get suspicious. But I agree that sending UNIX signals (or PostMessage) is not really good communication.
-- Duy