Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Enable sub-second timeout in zsystem flock
- X-seq: zsh-workers 44585
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Cedric Ware <cedric.ware__bml@xxxxxxxxxxxxxx>
- Subject: Re: [PATCH] Enable sub-second timeout in zsystem flock
- Date: Mon, 29 Jul 2019 15:25:17 -0700
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aIebCZ85P0CGGRmZeekR8ukeJXDZ+ENWP0215tDZInE=; b=igaAP3ZSKli2BhAJOHw/roTizGjH/v9xEu5fHn2kg+lWjxnCqRoa0ZNFoNeCxeWePy Q6ek9YmC1U9mzboVzxDHVUqmVAiW2V2taEZMSZhfsnrCS7dSh17Z2kY4WsU8zumyd/Mb jPy7BQCcz3Dw20amnmT4RTQukKcuiYtd2/4VR1+q0srYjdfNLph5/RYP7ldE5DjpUUUk lL+ivOnx8eaHzNaaRa2pOZBRnQsk5kofD0nf1/2gvfxgC39RNdnZ7cYDO3KjrtpZZ+jE UmcRp6nWwTQo6ZVOvSqig3rFx9RhL6C3XZ9WrD3B677+vLd1xVZoDn/Y4hHwN07PAG0B 5G+Q==
- In-reply-to: <20190729203521.upp5ku3bsr3hsnxq@phare.normalesup.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20190729203521.upp5ku3bsr3hsnxq@phare.normalesup.org>
On Mon, Jul 29, 2019 at 1:36 PM Cedric Ware
<cedric.ware__bml@xxxxxxxxxxxxxx> wrote:
>
> The attached patch (against zsh 5.7.1) modifies the bin_zsystem_flock()
In future, please either inline patches or attach them as text/plain
(e.g. with a ".txt" extension instead of ".patch"). Thanks!
> I kept the same function's logic of periodically retrying to acquire
> the lock in non-blocking mode. However, there may be a better way to
> implement this timeout: set a timer such as setitimer(2) which sends
> a SIGALRM on timeout
Unfortunately that technique can't be used because ALRM is a signal
that the user is allowed to trap via the "trap" command or TRAPALRM
function, and which is controlled by the TMOUT variable which is also
user settable.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author