Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [patch] Avoid race in zf_mkdir



On Sat, Oct 10, 2020 at 1:50 PM Roman Perepelitsa
<roman.perepelitsa@xxxxxxxxx> wrote:
>
> Perhaps try N times instead of forever? The patch you've posted uses N
> = 1 (which is already better than the existing code) but it can be any
> other number.

Does anyone have an opinion on the value of N? My latest patch sets
N=8 but N=1 would be fine in practice, too. I'd like to fix this so
that I can stop using a workaround whenever I invoke `zf_mkdir -p`.

Roman.




Messages sorted by: Reverse Date, Date, Thread, Author