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

Re: Which signal >(process) receives after main shell exits?



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