From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27910 invoked by alias); 16 Feb 2017 04:10:51 -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: 40549 Received: (qmail 232 invoked from network); 16 Feb 2017 04:10:51 -0000 X-Qmail-Scanner-Diagnostics: from park01.gkg.net 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(205.235.26.22):SA:0(0.5/5.0):. Processed in 1.414744 secs); 16 Feb 2017 04:10:51 -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.5 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: SRS0=msv2=Z5=brasslantern.com=schaefer@bounces.park01.gkg.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at bounces.park01.gkg.net does not designate permitted sender hosts) X-Virus-Scanned: by amavisd-new at gkg.net Authentication-Results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=brasslantern-com.20150623.gappssmtp.com X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 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=ofFbLrWJkW3WV3UGgcrTB+6iUpjlPvNJbYlSDOcllU4=; b=Al81zOF+VQpEytkZmv/H4vaeBWpKg0Doez2RIY/7S6+xvRQcinetqSENwTtneTh2jz zBd81hjnIn/CQGTqx101odgpyR0EKrol+C8PtqV8B66q+Lpx+Ad9At1wXhoIhm6A/LrF aBc/BFiM0SRAAhw0fL0j9W3TrnVsb3hWwEhJDFEK8xRJJ1739AvJYxFsnHBDkh5MuVlo Rdf28mrD5Fx09lHTw8IBizYfkJJ++fmWQY4aGr2WwO3bphE6+A/zYyBshUPblVdmAO2i 1e6RxXmFNnfGydm70Cw/3tc4j1p6MP7Fo427kVY9r6IklW+30kF4e78JzuQYhyr/dtlB kkSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=ofFbLrWJkW3WV3UGgcrTB+6iUpjlPvNJbYlSDOcllU4=; b=bbpMhdZoxUTgDCl6Q8kiwwEhEOQi3UqLjfIzvouhzA7Uw4YReKFtC0GY4mmlgQlNiu DKPJYHdcj6ZDxNeXTsfdPbjnitnH05QcCc97jFfo8qzpuDSoIB2tri+ajueAVqI3xO+Z 0as9XVrc/oS7LClWqtITW5NTglNGqr92J06ZCUoDsbukayTpsCDx+BpN0fYxUrpZ3SDT rqlgjFqR+wRe+JGYHP7mKmjDQH/wxFauwYemdvm3K5Q77yiH830FyLniTpklBxXWDwv5 JBcYkxtQBagM38+xrF+k7b82C8bML4YYxO/2A53J3XS6n0jYigF2JDj5Ge0mSVQ1rs/P 2wNA== X-Gm-Message-State: AMke39kTGK6pnfqf4yrzWBm94wTl5Nw0NpGuHNcnV0hIjkhNEg646G4AJSayWp3dUshOJw== X-Received: by 10.31.228.71 with SMTP id b68mr86093vkh.141.1487218218965; Wed, 15 Feb 2017 20:10:18 -0800 (PST) From: Bart Schaefer Message-Id: <170215201044.ZM15764@torch.brasslantern.com> Date: Wed, 15 Feb 2017 20:10:44 -0800 In-Reply-To: <20170215221757.GA24355@lorien.comfychair.org> Comments: In reply to Danek Duvall "signal mask bug?" (Feb 15, 2:17pm) References: <20170215221757.GA24355@lorien.comfychair.org> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: signal mask bug? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Feb 15, 2:17pm, Danek Duvall wrote: } } % jobs } [1] + running sleep 30 | } unknown signal (core dumped) cat } } Of course, nothing actually dumped core, suggesting it's just a reporting } problem. Hm. This indicates that WCOREDUMP() is returning true for whatever the job status of the cat process is. However, presumably the status of that job should have been set to SP_RUNNING at the same time it was for "sleep". Which it is -- makerunning() assigns SP_RUNNING to pn->status of "cat" during "bg". But then when we reach prinjob() from the "jobs" command, pn->status of that job has changed from -1 to 65535. This happens at signals.c:525 in wait_for_processes(), when the status returned from wait3(&status) [line 457] is assigned to it. I suspect the status returned from wait3 is invalid in this case, but I'm not sure. What would a status of 65535 mean? Or should it be masked in some way that it isn't?