Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH v4] gc: reject if another gc is running, unless --force is given

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:58:22

Duy Nguyen [off-list ref] writes:
On Fri, Aug 9, 2013 at 1:12 AM, Junio C Hamano [off-list ref] wrote:
quoted
When we see a recent lockfile created by a "gc" running elsewhere,
we do not set "should_exit".  Is that a good thing?  I am wondering
if the last two lines should be:

-       !strcmp(locking_host, my_host) &&
-       !kill(pid, 0);
+       (strcmp(locking_host, my_host) || !kill(pid, 0));

instead.
Yes I think it should (we still have the 12-hour check to override
stale locks anyway). Should I send another patch or you do it yourself
(seeing that you have this chunk pasted here, you might have it saved
somewhere already)
The above was typed in my MUA ;-), but it is an easy update I can do
so will do so anyway.

Thanks for double-checking.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help