From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10453 invoked by alias); 25 Sep 2016 22:54:31 -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: 39437 Received: (qmail 10365 invoked from network); 25 Sep 2016 22:54:31 -0000 X-Qmail-Scanner-Diagnostics: from mail-pf0-f175.google.com 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(209.85.192.175):SA:0(0.0/5.0):. Processed in 0.123159 secs); 25 Sep 2016 22:54:31 -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=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at brasslantern.com does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=P4tzuqdTrl0lio/es5d/PZcIwDPP36Xzf0feIvzB2Sk=; b=z/cbYiF9KHiUxi48U/YrxtrmmJ6gAjAmkhow2gy243qqBvyX8RUKfvq/kBoRdEI6g7 E3h01LjfaZwmzci5bXJY4s3M44uQOn+MG+qNsOl3zTcugzFDIyrOOp/fGJ0DnhV3UWm0 NLRSw8qGf9Jo+IgvTpQUj9UdjcSPW5Wv6doSEhmt5ddriBrd6DQJK5xA2tHNwLayuXlz ekTO7ipXtKbG5s6dLtEoBNRN+9wiezDe6QMdq98vfn/Yot4zGDngJ/z21qWsyjaTbkKg 8SLL+vV8QPeHwAIXSAswNzO4G6LQeOFMY2W0ZqNkbrXYhyNllN84NTk3PQ5heQA1mCs7 wGOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=P4tzuqdTrl0lio/es5d/PZcIwDPP36Xzf0feIvzB2Sk=; b=ON5XUUfjx39Yn2dmliLT1qwT1VSPef5K+LL6w1eaaa+wFzfCQhcFOM/B+PvqX4SQcn XfK5CBgS3AoQ1dZzrdusiprkEi0ALXiY/hO/ih9bI+IXt1iErjiQKeGb+BCrbTLlJuOl J/GKO9YASumUQYwSUEX4D5Sog2Kl2S295+8yBoHLQiZ2R3nNu4gU7UPrTi8P//swRn+4 wXaJ7aLSOuacDzKEwJf56ChLLGBXJk2EKC46Sybwk85cCvoD3nS9guMJSwsCHsong0Vu QifEkQVzuSsx2Fg8WYGLJwa3fiH0lEMWnUAfum3m2WZ7TfYzTfstMyq5xCZzPZuqANoz ZaxQ== X-Gm-Message-State: AE9vXwPgDf5d7kZNxuowo8Jz8FFpG8ZtdRCus1hVOVlZpF66YkS3TrvUxvFYOTjNTR7FJQ== X-Received: by 10.98.213.68 with SMTP id d65mr32708380pfg.112.1474844064866; Sun, 25 Sep 2016 15:54:24 -0700 (PDT) From: Bart Schaefer Message-Id: <160925155436.ZM23968@torch.brasslantern.com> Date: Sun, 25 Sep 2016 15:54:36 -0700 In-Reply-To: <20160925153924.7e741ffc@ntlworld.com> Comments: In reply to Peter Stephenson "Re: Bug related to stdin/always/jobcontrol" (Sep 25, 3:39pm) References: <87r392jgd0.fsf@juno.home.vuxu.org> <20160905164207.4630643b@pwslap01u.europe.root.pri> <20160914183105.69862fa9@pwslap01u.europe.root.pri> <20160914223553.3173c8ca@ntlworld.com> <20160922115921.GA3613@fujitsu.shahaf.local2> <160922093838.ZM7266@torch.brasslantern.com> <160922181847.ZM22524@torch.brasslantern.com> <20160925153924.7e741ffc@ntlworld.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: struct job.other (was Re: Bug related to stdin/always/jobcontrol) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 25, 3:39pm, Peter Stephenson wrote: } } > jn->other is a job table index, not a process ID. } } The code's correct as it stands (modulo problems setting the values it's } using) -- read my previous explanations and the updated comment in zsh.h OK, thanks ... how about this: diff --git a/Src/exec.c b/Src/exec.c index 4e89340..c27c41c 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -1702,7 +1702,7 @@ execpline(Estate state, wordcode slcode, int how, int last1) jobtab[list_pipe_job].other = newjob; jobtab[list_pipe_job].stat |= STAT_SUPERJOB; jn->stat |= STAT_SUBJOB | STAT_NOPRINT; - jn->other = pid; + jn->other = list_pipe_pid; /* see zsh.h */ if (hasprocs(list_pipe_job)) jn->gleader = jobtab[list_pipe_job].gleader; }