From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2272 invoked by alias); 1 Apr 2011 14:18:13 -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: 28968 Received: (qmail 23994 invoked from network); 1 Apr 2011 14:18:12 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <110401071802.ZM3412@torch.brasslantern.com> Date: Fri, 01 Apr 2011 07:18:02 -0700 In-reply-to: <20110401102846.482a9165@pwslap01u.europe.root.pri> Comments: In reply to Peter Stephenson "Re: zsh hangs sometimes continued." (Apr 1, 10:28am) References: <1301593035.6016.ezmlm@zsh.org> <1B2B2EF98D55CB41BD16F13B18B9B0080EA2084C@FFBRUE001.cfmu.corp.eurocontrol.int> <20110401102846.482a9165@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Subject: Re: zsh hangs sometimes continued. MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Apr 1, 10:28am, Peter Stephenson wrote: } Subject: Re: zsh hangs sometimes continued. } } On Thu, 31 Mar 2011 20:32:58 +0200 } VAN VLIERBERGHE Stef wrote: } > After adding more and more debug info to the zsh-4.3.10 sources I } > figured out that the problem is in the findjob returning the pid of } > a terminated process. } } Thanks for the investigation and the explanation. I agree the uses of } findproc() all appear to assume the process is still marked as running, } since they are all about to update it. Here's the patch I'll apply. Reading the explanation left me wondering whether there's an additional problem in the event that the shell is spawning processes fast enough for the PID of a terminated-but-not-yet-reaped job to have been re-used in a new still-running job?