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 16698 invoked from network); 6 Feb 2021 21:53:44 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 6 Feb 2021 21:53:44 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1612648424; b=NKmAG1tvDx6nl539I6di5xNt6SPJZyi5K+c8toYytYEiSfD9zkRRptdxph4fVC7Jcq38GgjSaY qkE9vE85JWpi1ldpGqut237dsEXWxH0q9TqkdeeXe9U3eoDQfXSzW1NEzxD8dgR4VwXgLfdfrH dis+Rj4QKOdNsfiVdZlU/KYoQlz3Z9ky5Bp4rpjzSMgo2kqK7b/pcHIQJ553SzH/2xtJMC85P/ hwxd3wwsdeLuVd2zZgV/1+akwu0zFIxPz6wicM1UWFgjv7FjvAmoFO0WwQqKX1Qpk0pthxq3b+ 7Sj4ASAVSQu77l/j3FVjNb1ik1AofpSNeuMPYMV/yGMaJg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f48.google.com) smtp.remote-ip=209.85.210.48; 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=1612648424; bh=HbvrfrRBX7QwE4cncpPojwgDkdlL02XrM9NvozuYntY=; 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=HTpFviorGPZEduIeLWp/xfz4JsbZpNV3MhTsfOXgp3m6F2NkWCXFq0fbiDaFxfBnaBEG4zmnfm cxdHhZYFrARYRdRASpnXAs7wu4FoS0sA/ZETXBUhZbJjGTevp3Lokh2NGSPRfuc4CmRzyZz4Py nBsR5ZzpwlHIIdRxIcFqQLTt0Fsbcfwhz0tcsQFbtfziOHZqhO0gqeJBYwFjSuCk4qANEkitcC r9n40b8XI44v8TYQjbBUxNko1o2jR7+j6tU0Ga8L6w4Vs2F8Cyuj4//kqOYigWK7vr3x4iHr6B gEHBG/CBmUdipFVanqIjJ7kyXBHIJMresnjfvTWkjzSt0A==; 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=HbvrfrRBX7QwE4cncpPojwgDkdlL02XrM9NvozuYntY=; b=hletO3JmICXLUJNCU/0IAttv5Q CH1r3iYG06D5ejutHRslNMqzYRolNbIY7oIGped0iarmjz2duv2qDo7pXPo0+hQjwMCyDNJJct7rM 2Hu1sh5rSLLUZ9bDxyfE+DIJDO5SONotJ3UItpUHCerNz1kjUjkuOlqQ/80yoMf3HGkZXE83z1/BE VVvSQje4y3H3+WlYG2OiLbRLk6uSiIUazY5ZnNkuiqsT/GMaJHFaE2WbyMJUunbjOQqUlHTfa4PQR eOHmNCZ5fm+Py2b5bHQoog82DLi7zIx4Fq4EWdb5DdSMVbNI74+IavUymXYjZZZ2blG7RsuOb6FXn 4PNkJrTQ==; Received: from authenticated user by zero.zsh.org with local id 1l8VWR-000PlI-SW; Sat, 06 Feb 2021 21:53:43 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f48.google.com) smtp.remote-ip=209.85.210.48; 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-ot1-f48.google.com ([209.85.210.48]:36291) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1l8VWB-000PbX-0O; Sat, 06 Feb 2021 21:53:27 +0000 Received: by mail-ot1-f48.google.com with SMTP id 100so3884689otg.3 for ; Sat, 06 Feb 2021 13:53:26 -0800 (PST) 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=HbvrfrRBX7QwE4cncpPojwgDkdlL02XrM9NvozuYntY=; b=kHIy+780W8zO2+R3HMZ2qnW85M0gTJsvi7CP/uKLNDB8XDq8A7xPQKcOX/SZRoqx22 WrCYJB8Q1mNCNeApjUxg2UW6EliBG/JquJED+IfIzrnnmjSewSlTvX4s5QXtmsayjFv7 fbO/d/XC4sPOB19pRapUrwdExLkD44nu4nY4i2N/qkoQvmhjO+7QhpVBIuKMSMuZUYAe rYYPbDQtEf2IOelgiWKL5CqzIBbc2gGPWoKx1wq+X8+8mVjECOBiuJ+RwvTxj23Djonh T8vFYNPPhimKYhaZ+AOAOeH56kaIDxJwnA0ALAdKFiVjDzJGI2cWGo/nIIHX+VpSVIUZ 9U4w== 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=HbvrfrRBX7QwE4cncpPojwgDkdlL02XrM9NvozuYntY=; b=T8J6meU+WBBb3YAKU1O3JrPcUbIoeMxuJgEK2Zafq5Io4WJbocc2snudGTPU37FMRb TndsSbf6vvI72dEe+eCdb2zqZMgA8/TEwbASdUZl8lwFsg27RTW0t6UPoIyMYlLqgJu0 MOZgNznx6DZQ0YJFgUsG5QfmMng6XJ3buIsqyFoeeQjHYOu7Qmj8FEDYGT49AjhaOgKW DXkoaGZAjvlMda8KcuW/DZtvJbEG6fFKjTncosBWU9qlx8Mvy7T3B6bkE5Z26v/nAGPz BTOZ6I/lQcEQ3FJmpClSiLCeSG9lZGRvD7yAtE+V4+vDfFNJAlB33uijSPkY+Dcqx8sD 9n6w== X-Gm-Message-State: AOAM530dqp8GiNPiYg/Hdm1d3822PuOWw7KNSLXSMiyyuh4uSjWvpXoG fFkzbB4j2V3S9TrGQ+/5OiaqTDU/KAOwMrwqIsjaD/euO7s= X-Google-Smtp-Source: ABdhPJyJ1pmAfGtds0RrqTJRYeMUtz6Da2fS0gXrxLi2USrqHgIH/yPeRQpDrAFd1cI8m+6VUEGmhjaDQFdAPzeNBj4= X-Received: by 2002:a9d:6acf:: with SMTP id m15mr7743921otq.260.1612648404487; Sat, 06 Feb 2021 13:53:24 -0800 (PST) MIME-Version: 1.0 References: <24606.56852.904076.773054@lwm.klanderman.net> In-Reply-To: <24606.56852.904076.773054@lwm.klanderman.net> From: Bart Schaefer Date: Sat, 6 Feb 2021 13:53:13 -0800 Message-ID: Subject: Re: zpty intermediate zsh process? To: Greg Klanderman Cc: Zsh list Content-Type: text/plain; charset="UTF-8" X-Seq: 47927 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: Archived-At: On Sat, Feb 6, 2021 at 10:21 AM Greg Klanderman wrote: > > I can prefix the command with 'exec' to avoid that, but looking at the > code in zpty.c, maybe the execode() call should just be setting the > (third) 'exiting' argument to true? That doesn't seem to cause any of the tests to fail, but I wonder about side effects when traps are enabled, especially the EXIT trap. Maybe just passing !sigtrapped[SIGEXIT] as the third argument would suffice ... or maybe the handling of that trap by zpty is already iffy.