Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [patch] Avoid race in zf_mkdir
- X-seq: zsh-workers 47459
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [patch] Avoid race in zf_mkdir
- Date: Thu, 15 Oct 2020 12:01:58 +0200
- Archived-at: <https://zsh.org/workers/47459>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-10/CAN%3D4vMqihCrowyGTxKhkdzOQq3GcmWes3fuzYXJ1DBN9WsLnmA%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-io1-f47.google.com) smtp.remote-ip=209.85.166.47; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=IptA6CIG76+YpUK8xcgmWz6Ui4dXMkvDDgc8LKIPYZU=; b=gQ0ZHwIx9EoTBTLkKum2sxguofvRWGTXRABZwpgb6Ds11zpvgfY17obTRYBgf6XIaG QFGY92+CE3p7+6XxO/mEthhWWqjLTxKj3Ql5YiRHZvFdDrsDwHjJ+lSs6EcDCinq3fUB sDLNDECR/Xb5HeOg24NVjSmMscn3j2AnhnjDhJHxUNK+l09z6BjrxJ0IuY4hyQvohXVG QhpSxHtZtNSHUfECNt2K3UkCZEaY7i9PUztsRaoeHaH/v2HZPwwd0Y7+JCEgOo/OCz4M Yh0xBlm/OiybulMisYSHVNIe4Jrop/3dUhLl5LUGHghwsd6lXfDoIvOVF4dUKoz1o9NW nExQ==
- In-reply-to: <CAN=4vMpuSaF6BDhhUP=tnvDDMTN=iKExkmtb5QgtoeCqN_9D3g@mail.gmail.com>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-workers>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-workers.zsh.org>
- List-owner: <mailto:zsh-workers-request@zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-workers>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-workers>
- References: <20201009200737.GA78914@CptOrmolo.darkstar> <CAH+w=7anY9r+-MYki4cycVuaP2+d9L3W5u8k3sHyZx4R5kvafg@mail.gmail.com> <CAN=4vMoJrD+g4Go37yT6gF-Lx61vHm45GvmG1Fx6-+3yyb1hAQ@mail.gmail.com> <CAH+w=7ZRvW3Yq3XO6TwbK1hgSDNE8ynX0eQOU2dTuLcAELNUDg@mail.gmail.com> <20201009205357.GA6449@CptOrmolo.darkstar> <CAN=4vMqJ8SXkz_EVqwL7-9gCQYg9GMczOztAtsErirXGEDRq8Q@mail.gmail.com> <CAH+w=7ZfkwJY6a1LzR3n=LsOmB21WKUZMXfNzXN1hNDFpdeG2w@mail.gmail.com> <CAN=4vMpuSaF6BDhhUP=tnvDDMTN=iKExkmtb5QgtoeCqN_9D3g@mail.gmail.com>
- Sender: zsh-workers-request@xxxxxxx
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