Thread (1 message) 1 message, 1 author, 2019-02-01

Re: Worktree creation race

From: Junio C Hamano <hidden>
Date: 2019-02-01 18:06:09

Eric Sunshine [off-list ref] writes:
Another possibility would be to skip the stat() and instead do the
mkdir() in a loop, incrementing the sequence number each time through
the loop. That should eliminate the race entirely (I think).
Yeah, I think that is the only sensible option to rely on the
atomicity of mkdir() call.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help