From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 2955767c for ; Sat, 14 Dec 2019 11:29:08 +0000 (UTC) Received: (qmail 24383 invoked by alias); 14 Dec 2019 11:29:03 -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: List-Unsubscribe: X-Seq: 45024 Received: (qmail 6443 invoked by uid 1010); 14 Dec 2019 11:29:03 -0000 X-Qmail-Scanner-Diagnostics: from out1-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25656. spamassassin: 3.4.2. Clear:RC:0(66.111.4.25):SA:0(-2.6/5.0):. Processed in 0.710202 secs); 14 Dec 2019 11:29:03 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvddtuddgvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggugfgjfgesth ektddttderjeenucfhrhhomhepffgrnhhivghlucfuhhgrhhgrfhcuoegurdhssegurghn ihgvlhdrshhhrghhrghfrdhnrghmvgeqnecukfhppeejledrudektddrheejrdduudelne curfgrrhgrmhepmhgrihhlfhhrohhmpegurdhssegurghnihgvlhdrshhhrghhrghfrdhn rghmvgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Date: Sat, 14 Dec 2019 11:28:26 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: Re: Bug with traps and exit Message-ID: <20191214112826.4klmtvxvuhioddcf@tarpaulin.shahaf.local2> References: <3859b4bf-08ba-62d5-f00a-3ec4e67caf95@inlv.org> <1576145690.8441.3.camel@samsung.com> <46f2fc10-2f2c-88f1-e4e2-87196a39a37a@inlv.org> <1576248580.5214.17.camel@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1576248580.5214.17.camel@samsung.com> User-Agent: NeoMutt/20170113 (1.7.2) Peter Stephenson wrote on Fri, Dec 13, 2019 at 14:49:40 +0000: > As you know, getting anyone interested in looking at things is very > difficult.  I'm taking more of a back seat myself, unless I can see > something glaring.  Anyone is more than welcome to jump in while > the old guard is still looking on to help. I don't know about others, but I'm not even sure where to begin fixing this. I can find the code handling traps easily enough ('intrap', etc), and I know where the code handling functions is (doshfunc()), but how to proceed? Would the right fix be to add some code in the end of runshfunc(), after unqueue_signals(), that checks whether a trap has been executed and called 'exit'…? If anyone else want to jump in, please do! Cheers, Daniel