Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Which signal >(process) receives after main shell exits?
- X-seq: zsh-users 23393
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Which signal >(process) receives after main shell exits?
- Date: Sun, 13 May 2018 06:04:41 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=JR4hMGqiioeF450QBQ3L/+z/EfTFvSWkTmHWuC/AnZM=; b=MluFtZS743V+unZlFDUxF6wTio9af8j/gb3qiy+QBOm2dewUQTdalipEQ4/H7kdxO8 tvm3V1xzt31rXWxq56gfxgsa4pXCHfvftXH0QFlBnlkJ1fnfrSsuo6Fb2VugfihZOIoB amefQUHsuBX65O7dRvpcij1L5mnbpY3VAOMsorcLtsOt3wqWLJ4SXzqnuB97BssJ5WuP DYYXD3+LHLcVXf6CL/4SVWDUg+crVxMabqcSe4fqBmzBHBCrEinOby7hLN6BlUQfj/LU CRIzibwIrUnWRHhItJ2f4kjL/nXKX844W4oxl7COq+h2U7bsGcgmdac9i9RSlUK9Vcy9 MTnw==
- In-reply-to: <CAKc7PVDADSrAdtGawPUG51L4Kmh+9iJMN9EUK437aj0SoTKtKg@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVDADSrAdtGawPUG51L4Kmh+9iJMN9EUK437aj0SoTKtKg@mail.gmail.com>
On 11 May 2018 at 07:18, Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
wrote:
> Hello,
> repeat 1000; do
> read -r -t 1 line
> done
>
There's a resolution – Zsh apparently doesn't manage >(process). No signal
is being sent. The function exits after main shell exits, because `read`
starts to ignore -t 1 timeout, after it somehow detects that stdin is
invalid. Thus quick 1000 iterations of the loop execute, and `fun` exits,
triggering EXIT trap.
I wonder if this is a discovery of other way of running disowned processes.
--
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author