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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9912 invoked from network); 14 May 2021 18:52:42 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 14 May 2021 18:52:42 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1621018362; b=q0wZa+9GP95410mBR6IFP1YBqbh59QUqHvTug3flI4hqIMTiazMaXltsALWGvR5umoZ4oLHQPz +ynrW/4pBRtZeTGY3tRGKSNlxKKWAt6wBmJFgvZfZ4H6Jjh87zOmYYK5774itQVPk6PX9jTfH5 LbYKkr0djU0ETjuat53KMeN9e9hVFbSeYPZ1kAihDkV/UqsV8BY7q/NR2d2hzERAq7y1+Nq/KR X3Sgi5J+ZJYxuuwevLURNT8BmTCRHpoNDgyioetVYao/k0V1WsEx5VfFPYMWB4rWvf9lKsl4i8 GffHr/fmG8WTbq5gKf7aoEun7/l+FoJ0GNUuyG0p4EGKvA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oi1-f176.google.com) smtp.remote-ip=209.85.167.176; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1621018362; bh=SsaPzWReSYTBJzATy3+RBP+F0A4xb5nE2HwsYujW5W4=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=JqV9ygr8wYl7QSJYGQ5pOFOqa7jZ4XOjpD0HfyRRDKTeumfPpkMh8ZHpro6Z0+HvPmKUT/rDcq AqmjFTjKydESYmfxdVxkUCjfmmBBFdrhtTNfKHDAG8otb+lMqICCzlH0hx8GAnDY8YFfrXelpw g5i6JW98c5Xd000QZYaUW1E2Bw7F1jwaGdMqjPm5wGoqizmPhaWwmPIrhInUyUptD+bZhDO4bb fSVBEV7E1vKSWRjOosCgkGbRriPLPyySxYwct5m2RIS2YLy3QhyQnZuG1o0dCgkJV0Ge3JDJxg 7J3+G7kJgfcXJDUUdgjyq2QlqU7rH3DIjT4sqHn7Mv/j7g==; 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-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=+H/z4Yz+vMT7Qx6reH1ESJ2HAt8AJ6EX22EqSsDU70M=; b=qBHJK4pgNjHiCtSCdmrRqbHShZ a1sHmAJUOyoW5Nk0MMU9LDt2yo8iGrw39XGXzAAYrTafzL2hPi1D+ioO94zqnHjJLPnYVbGf9w78n XRGj4ZIxuPfsabP2s2TnYXF5pL5Ni0Gy2FSE6O4FmH4iksLsaPMCoLK7PUPtDu7Hh4uljfwNL8Qgt P9pVRBpTY24XGQntkCbJfaNXnmlm/OKO4goZ0nUn+3NtG2rO7NrdDVM9YcAugsvkVcsBMGujNu0n0 3HF4gMDuO8sXpTXqPd42VmqpSQPXddNX3qY/MhkKWTBS0o+/wsL0jRl4GoDmRt9zRz/N+Qtqi6Uv8 jsrFYzPA==; Received: from authenticated user by zero.zsh.org with local id 1lhcvR-000O5Z-Rf; Fri, 14 May 2021 18:52:41 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oi1-f176.google.com) smtp.remote-ip=209.85.167.176; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-oi1-f176.google.com ([209.85.167.176]:36398) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lhcuD-000NLm-3f; Fri, 14 May 2021 18:51:26 +0000 Received: by mail-oi1-f176.google.com with SMTP id f184so402625oig.3 for ; Fri, 14 May 2021 11:51:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+H/z4Yz+vMT7Qx6reH1ESJ2HAt8AJ6EX22EqSsDU70M=; b=HuEDAKqJSRaT13oHtkIA+dmSLL/bao4ILdWC15kujGJUYCpPe/nE3UXiaUUR3kdqs/ imtQmz4xyuSSJTAa2FZrTrcfMcqoIPqr2viJuz8TnYZAsTxNp6uiEOJPsPFeJjlYPrEj 9MOd12t6lIS323gTu0ozvk4nu6IZYjGP1At5dxKYZ7wrrLIokDSuzciZoHT4p8foXiS4 6bRdW+zlQR+v0ESGLtr1jf0If9r73qIt92egXP2d+WgoR1hq66jz0ZWT2pZQyGYH7WkD i/5hIOH1vI7BjIB/8QebN+JQ4gs5s5zAJmZMnl4iT50vM2KEMrSToN1IvALtK+c62eTD 96Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+H/z4Yz+vMT7Qx6reH1ESJ2HAt8AJ6EX22EqSsDU70M=; b=hOs6PI+9Rp6V0yjbkx89IXLSK/nUx1fT+LJejLS+mrpGPBEdgJyDsEVAbywALGtUUO xqmqDGqsw+kYAn1v8JSnBLP6GapDFbORGma8CkB4dhiiKa4gFELIRjOC7nFA53Iom9W/ WRvBWJK3mm7Vsy9TvpYFT+TGnnGpBleiCQD7CsD6gD+evL+7F+UV8LxmsvKkiL35xQUk lP/2jRUk8dK8mKY1wPw0VzHFsRrE6cwHUDCJDiUn+NXoUF+IZMzdiwAgNLrOuLHcz4Q7 7UVfbQF1ikzTDdttkQL0YbyFRq/s4gBJKchkv/Jf5P3GrUBGEnDoCV3cbx4UhHE6QBLl Jkbg== X-Gm-Message-State: AOAM5323cWaRuYkVSLKnmZkUxFHoILfgnQGJS7h2KDiNiV1ZXczPNokv 96l6BAggRjrHPAHA9MAIyjePxKN4pkiEX4OY+4POUw== X-Google-Smtp-Source: ABdhPJxZeKjRHVU6AYQYFIytCiHa7N2WX91yaqAl32KJrtd8Uaz2XgHEkskDZM/Vkl7GXfhoOHmkL1wvtYPrZSW+00c= X-Received: by 2002:aca:d90a:: with SMTP id q10mr7816091oig.173.1621018283650; Fri, 14 May 2021 11:51:23 -0700 (PDT) MIME-Version: 1.0 References: <20210513101751.j5vo2dbrd5uzwju4@jo-so.de> <119769213.82300.1620922030356@mail2.virginmedia.com> <0890fd16e2f7d0a8d40f621022ad541ab1c1a9ee.camel@ntlworld.com> <979701293.98679.1620986176059@mail2.virginmedia.com> In-Reply-To: <979701293.98679.1620986176059@mail2.virginmedia.com> From: Bart Schaefer Date: Fri, 14 May 2021 11:51:12 -0700 Message-ID: Subject: Re: Zsh spins in endless loop with SIGHUP + read in zshexit To: Peter Stephenson Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 26743 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 Fri, May 14, 2021 at 2:56 AM Peter Stephenson wrote: > > > 3a) in a shell function (ZEXIT_DEFERRED) > > Focussing on this one, I tried > > TRAPEXIT() { while true; do exit; done; } > > and sure enough the shell is looping forever if I kill the terminal. Of course there's nothing preventing someone from writing an infinite loop in zshexit or TRAPEXIT, but it's reasonable to expect that exit does stop a loop. Are you going to commit your patch from users/26742 or shall I sweep it up along with mine? Meanwhile we should probably move this thread to -workers. I hadn't noticed it was on -users until just now.