Thread (4 messages) flat view 4 messages, 3 authors, 2016-06-15

Re: gc considered dangerous

From: Mike Hommey <hidden>
Date: 2016-06-15 22:46:07

Possibly related (same subject, not in this thread)

On Sun, Feb 08, 2009 at 12:00:57PM -0800, Junio C Hamano wrote:
Johannes Schindelin [off-list ref] writes:
quoted
My preliminary guess is that this code in pack-write.c needs to use the 
lock file paradigm:

        if (!index_name) {
		[...]
        } else {
                unlink(index_name);
                fd = open(index_name, O_CREAT|O_EXCL|O_WRONLY, 0600);
        }
Whoa.  That particular code has been (and is still) correct.
Don't both unlink and open fail in the case the index file is locked in
Windows ?

Mike
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help