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

Re: [patch] Avoid race in zf_mkdir



On Thu, Oct 15, 2020 at 3:02 AM Roman Perepelitsa
<roman.perepelitsa@xxxxxxxxx> wrote:
>
> 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.

Any value > 1 would probably render the chances of an incorrect result
astronomically small.

Minor nits about the patch:
- zsh coding style prefers a space between keywords such as if/while,
and the open paren.
- I'm paranoid about tests like "while (n--)", I prefer "while (n-- > 0)".




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