From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14243 invoked from network); 13 May 2021 18:46:00 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 May 2021 18:46:00 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1620931560; b=NBMT9u2qMS2usGYPhXEhqABhgd7nTstAcDCqPApmzvHJFjFj+7Mv0Uc9hJa8rtf8cl1wNE34HF hk1v3btzsIHoY7G4ACcDgXv6BZioZnDav5NUlbvMRHkzNDFs6iFBsWfS599/T6y24qj2p+bLPA iwFrlDQfRgMc+ETY/42KIXn9UVoxABZUklf+H+6vsdBPc9Xreivll+4FFntZxr0oKVfbn4m7ZN SYlPnoUAsNE/ugzwdM6VPPKReQa04UU6lIsohf4Gs1FO2v1AuxI4Dbls25DcLzdBANkh10sV16 BzKh6THkRzAw5JB/SN3vTzzUjYkQZynPrQ+4KpK9BXUAAQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (know-smtprelay-omc-1.server.virginmedia.net) smtp.remote-ip=80.0.253.65; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1620931560; bh=ROYYaMAUIRUoihsErQ2OcjlqIgrsWq+25cZUfXVzaTo=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:MIME-Version:Content-Type: References:In-Reply-To:Date:To:From:Subject:Message-ID:DKIM-Signature: DKIM-Signature; b=A7OMwkQcNeu2v57i+i9n8pma8m+aMHIepy6YcBSM/sr9qf/3su84MtjART7kWkb0SPp3HsCz1Z WmVuW3qUYsIjcjTWcdqkgnvmDxGsWB6EHuz9+O58cmzRdoINwHxhwrG5ElrLdBmrOiRz5ghKh2 pIi/dbifGU8rp2Y6hCM7Mg9MRznfqepO40QMXpNGTnJcpuVgZ9x7Hm7P2pGE6VLh40U20ObB2Q No932Q7K41nAm0y7dffznTVv6Mth+nwVEAiFUCCPqvY3lP7ZH5LmrKxQ3rQtYuXSrtdeET8aG6 JhkvGA8lk9ZPauIBvkgKMalzA0DCyJ3p02P0KEnQ8LGtCQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Mime-Version:Content-Type:References:In-Reply-To:Date:To:From:Subject: Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=dA3ccQaSpJgWhbLBiOpIvrFDQFwDMCCGdksntSDBgMg=; b=lu0Cm7xLvyZt4FUdmqDU6IisEX qrWrZjKtJtyAF30RlpNzr9LvhkZR1HZmBh03C6rAsbK9HJ1DrJh01hT9I4ykf0iUxxtlGFE1rdR2g mAiuHs9zmhYaTt4D2bjLVM8vKc7eJDqthim0H/pj6/DO5nYuxhpisvWcTyiMESGqep3xiyiFPiBkK 1EyoR0NWrSF8+ZBHG5zOgQAO176U1+0hcSyyC8oajzfpc2sP2KEYovqrksKdhPb3+v5dpkJjjYVnU B9e22Utqj1eT8E3BPJlt4HCLBoM6ofaT46pnkh5wMNtnYCTE+4BlvDAHHtPqnBJ02J3fz3ORZh2XY bdQXm+JQ==; Received: from authenticated user by zero.zsh.org with local id 1lhGLP-0006cO-8b; Thu, 13 May 2021 18:45:59 +0000 Authentication-Results: zsh.org; iprev=pass (know-smtprelay-omc-1.server.virginmedia.net) smtp.remote-ip=80.0.253.65; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from know-smtprelay-omc-1.server.virginmedia.net ([80.0.253.65]:38318) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1lhGJg-0005rd-0R; Thu, 13 May 2021 18:44:13 +0000 Received: from pws-Zeus ([82.20.19.64]) by cmsmtp with ESMTPA id hGJflFExtmjUKhGJflGUnD; Thu, 13 May 2021 19:44:11 +0100 X-Originating-IP: [82.20.19.64] X-Authenticated-User: p.w.stephenson@ntlworld.com X-Spam: 0 X-Authority: v=2.3 cv=MadCRa3f c=1 sm=1 tr=0 cx=a_exe a=FYxK54AnRTbDA0SLc6W5Eg==:117 a=FYxK54AnRTbDA0SLc6W5Eg==:17 a=IkcTkHD0fZMA:10 a=NLZqzBF-AAAA:8 a=3joPXbXiKxYB-Lm1qj4A:9 a=QEXdDO2ut3YA:10 a=wW_WBVUImv98JQXhvVPZ:22 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1620931451; bh=dA3ccQaSpJgWhbLBiOpIvrFDQFwDMCCGdksntSDBgMg=; h=Subject:From:To:Date:In-Reply-To:References; b=Pc3p5VKlKLnflajbkjS1BLwgjQXAtruTmw6Jv2uXoEK9ZjxZATQgGLGaVGlAfDJAw gEbt3J2iIsf857RcXrQiu1UzXcmzB0oWq3T0nvxMKjlt715rKL4/WuOUe6q0+M2jvn F7OJ+zJE9VgMktMBb9K+K62G4ArIbVsFNJCHCNVv0kpuRIqUmN9ExNppfU/Jlmb9Td AQwK5QolOlpRjS2fTTHMxCQQR+PLUguEAVcstQGcKggwvKImLHQM0JR27uWNzIzcZt cfPd3WebrhIF+FdkADsO6gNSipaGfhVi3M+9tQjpmcngJlH3YPLf0sFzpctVAqku0x 3kYzTfSwKLCTw== Message-ID: <0890fd16e2f7d0a8d40f621022ad541ab1c1a9ee.camel@ntlworld.com> Subject: Re: Zsh spins in endless loop with SIGHUP + read in zshexit From: Peter Stephenson To: zsh-users@zsh.org Date: Thu, 13 May 2021 19:44:10 +0100 In-Reply-To: References: <20210513101751.j5vo2dbrd5uzwju4@jo-so.de> <119769213.82300.1620922030356@mail2.virginmedia.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfLMgnQFPH/KZ9hmDjqP62PC/O52BXLPm1dzVXhhHqypJSL2vA4c7wt4UDuIjjdWoCYkQGZLhJ2K/d5EGIIQxq60OuyuQKh8zbPVSZbJtZZ2Lttg86mMV LGZeHhdetNUBJRT5NEPDbx3tkzGKHlelGsR5CGNIfs8tkceY6w6V4bGk X-Seq: 26739 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Thu, 2021-05-13 at 09:30 -0700, Bart Schaefer wrote: > On Thu, May 13, 2021 at 9:07 AM Peter Stephenson > wrote: > > > > [...] don't see why > > your simple patch shouldn't work. > > I suppose it comes down to what we might find in other callers of > zexit(). Presumably ones in loops are the nasty ones. I couldn't see anything obvious. I haven't looked for cases where we're disobeying "exit" from shell code owing to the same logic, but I think the fix there would probably be different (you may be stuck in a loop in shell code). This is completely hypothetical, though. pws