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 29645 invoked from network); 29 Apr 2021 18:28:25 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 29 Apr 2021 18:28:25 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1619720905; b=ObylWx80HoF3IOQcqWu57ew8605I0S3p4eeaDfIaTebdt2seAJW061m9DCjvU3rebc5v22fGa4 0/FkO3/WA8i7Rn/lQXXlji8Hg0iTLTvjrdhxqMkJqtAkGtUDtN2oA2zeSvWeahRFTRRPF8UE1Q OnKncJCN6s30bMCi+OYRjHF/HeXMDZGmhJjkiBMyp+rVEaD9OJtSMWHNLO+pLrfO8jHkG8tPeL aTjOOWW8r925ZDWpOVwboZyZRFxe+gGeg6sKr1Ex3jctWLmzdlh3wgl6cbg2WdHz0Il6pvi8gl b0LF2VKYEU8W0Fd/3NaAWlWTdvEkN+qNcB6ahgGiWyLnWQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oi1-f171.google.com) smtp.remote-ip=209.85.167.171; 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=1619720905; bh=1SZWNt8uKPFdWHQQHWwKiFnw7pn1AavR7e3nCjSeKio=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=gP3wNnAEwBqWenfIPmpKDu7f6mZBO3vZ3nX92UwFlF9ZDAWJcJ/+wno1K8kJoaVJVCT+ve6zPv NUksVTE1kBWfGzmgl53W+hsPDNOAzJHg6Qz6P8cjzvVEmnYznbMoWwshTlx9UiAru7ZtU+Fhpf WE3jVdhZupp+N2wWSvWwF04AA4D8AJenqzhbe60NKFMw47nm6FtCgbjbCcRQDL9y36zSKJp+wV NEzDYVUdbiVAlkaBNc5z+XFrzUOApjG7VcmFC70wkOb9du/2RFG90o1HKZMsb0fJNlLWcmWnS3 YNZErqN6FJEmvxYMMFRKH3yJwed3V6ianBJJHzi0ILQSEQ==; 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:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=fmJTTdz6yI/buRUjQi/CFmw9ccQdr5ZuA0Vy+ErgJDc=; b=WJLaF5vN3SMeYvV+nt9Kocm0Bf gb0lZd2JTESenCHdwGkvVRzKjfRrv5OCWvP2w7y5RbJZwXMWwS4RSCAg+U5fe1Bk3NeDeE8w22qu6 NCZdTvR01UtcMSZe2nA+C7dtMaMk6h/nvBGT2J60VtyVXF3nYdXQ/UEYEpQSNhDkfPMlwnpEBRkHq +tC/8NWmE8OBypBEAec04//smUumjxTQHD2fCe0AgEjNvyYqNPJ0iMlLX6Qcjg+gxkhiwFhNU6ysG I2gxmt7KrKfokycJVv0Iz4sbVVkmwfQrSrlGbHH1xiEFnbSXv5reR0VLKfrTBx4s/0qF5vqORAgzf jTEscA8g==; Received: from authenticated user by zero.zsh.org with local id 1lcBOi-000GB7-VT; Thu, 29 Apr 2021 18:28:25 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oi1-f171.google.com) smtp.remote-ip=209.85.167.171; 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-f171.google.com ([209.85.167.171]:34731) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lcBOG-000Fvz-II; Thu, 29 Apr 2021 18:27:58 +0000 Received: by mail-oi1-f171.google.com with SMTP id r3so14041573oic.1 for ; Thu, 29 Apr 2021 11:27:56 -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; bh=fmJTTdz6yI/buRUjQi/CFmw9ccQdr5ZuA0Vy+ErgJDc=; b=HN8hZphLnwyIj9NswReaR7EL/meR7xrZoSHcc39mp1CR/AyuwtGf4Jv+bKVTgEDC28 /0pJSMzb6vkMEKHqzUjoDpvT0DVlSTmzWSX7UfF1c6qa72d5X4sD3ULgOozWVxFS2qbf hRAYv7WyUqNvNY6SlIDMGSGNa3QJe3JRX26wpSdIF2/tv5PtIUDD6DlUPHOWknxLU6i3 RRsi+GnzLaMO99GWDJ2KBlbU8Dl/07/qU4qOR602Pe9l7CqbjQv/NiykeysSv/pGxOd9 lV3RcvYTAXbPz4LpQ3aBmZfWmpNguftCJj0or2Wb0tyAeUGiM/jrZy02wv6KYkiyi7Ca UZwg== 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; bh=fmJTTdz6yI/buRUjQi/CFmw9ccQdr5ZuA0Vy+ErgJDc=; b=i/KbTqNvkyDTrg5Eqbniv9ZwFkz6XiX0Tovc0VrTlec+Zih7W+l7CORScCfOP6LbRl pY6hdmjT3tEk06VrwOnj6s+heDpuEVbkjTlPwTHGaH/j7NWCMapij8UCHFCx7u/AYoct RjWI78J4zGOC0tqYR3aFQ5ViUm/ic4vkw07b6HslHM+rrKg4voK0hJHuHOQLjlc2mDYZ 8Rp8uXJBcIEZRvy8SLwT3MUwlLDIOuRr+pNR/CnadrGLbox18qS937CRqpSTEQFzg/4o K1KXTE8k+cuE6ensyLPa0kG49CU9RFUkDxIImHIA4ixOqDxbFym2DcyaZvJd512uIswc 73Ow== X-Gm-Message-State: AOAM530h64yW1KESwyw34fqwbQb1X1F8buejCT8GwES/GIVUaIbLkSh7 +H4N6yR3Oj6gWt/xJ+iDWrg5sPukKc6kuvMXWRpBk/p0ITk= X-Google-Smtp-Source: ABdhPJyC39ZMekPHsEzJFfQH+r8XAmaEyNrmaU6PvnZiFehrcRmpJrs0O5uKe0RL/y/QF0nTd2HJKYuJQ7jwsh2zs7A= X-Received: by 2002:a05:6808:51:: with SMTP id v17mr7862595oic.132.1619720875129; Thu, 29 Apr 2021 11:27:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Thu, 29 Apr 2021 11:27:44 -0700 Message-ID: Subject: Re: The curious incident of the feep in the night-time To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 48743 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: The plot thickens. An actual interrupt signal causes getbyte() to behave as if no keystroke were entered, at which point it discovers that errno == EINTR and the top level is restored without passing through the code that calls handlefeep(). Conversely, sendbreak() eventually returns whatever keystroke(s) initiated the widget, so the simulated interrupt is treated as a failed widget and (when lastval is nonzero) causes the feep. This is probably why we didn't notice the missing feep before, because ^G and ^C accidentally behaved the same most of the time. Still pondering what to do about this.