From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5685 invoked by alias); 5 Sep 2016 15:04:38 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 39182 Received: (qmail 23500 invoked from network); 5 Sep 2016 15:04:38 -0000 X-Qmail-Scanner-Diagnostics: from 195.159.176.226 by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(195.159.176.226):SA:0(2.5/5.0):. Processed in 0.151686 secs); 05 Sep 2016 15:04:38 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: ** X-Spam-Status: No, score=2.5 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NML_ADSP_CUSTOM_MED,RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: gcszd-zsh-workers@m.gmane.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at m.gmane.org does not designate permitted sender hosts) X-Injected-Via-Gmane: http://gmane.org/ To: zsh-workers@zsh.org From: Christian Neukirchen Subject: Re: Bug related to stdin/always/jobcontrol Date: Mon, 05 Sep 2016 17:04:20 +0200 Message-ID: <878tv6jsln.fsf@juno.home.vuxu.org> References: <87r392jgd0.fsf@juno.home.vuxu.org> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@blaine.gmane.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) In-Reply-To: <87r392jgd0.fsf@juno.home.vuxu.org> (Christian Neukirchen's message of "Fri, 02 Sep 2016 20:39:39 +0200") Christian Neukirchen writes: > Hi, > > Stripped down test case for a mysterious loss of child: > > zsh 5.2 (x86_64-unknown-linux-gnu) > zsh-5.2-0-gc86c20a > VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 29 2016 13:06:04) > Included patches: 1-2207 > > zsh -f > juno% v() { { vim - } always { true } } > juno% ls | v > ^Z > zsh: running v > juno% jobs -p > [1] 4421 running v > juno% fg > fg: no current job > juno% fg %1 > fg: %1: no such job > juno% kill %1 > kill: kill %1 failed: no such process > juno% echo ${jobstates} > suspended::4421=running > juno% ^D > Vim: Caught deadly signal HUP > ... > > Everything works ok when > - always is not used > - stdin is not used > > Thanks, For the record, this is also broken on 5.0.7 (Linux 3.10.42-1-lts), but works on 4.3.17 (3.2.0-4-amd64). -- Christian Neukirchen http://chneukirchen.org