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 20436 invoked from network); 9 Feb 2021 00:32:17 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 Feb 2021 00:32:17 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1612830737; b=0S/N379Pl4dTPixcvgfkMbSlEDNUmCxjnmrcqQiVo6MWmgmeaBR7W0eDbLLxCv8t49BuhGchLH O/cCM9th0F+Gybe/roJtI5AITJctlzKk+Ph6ij2z1R9yDr9k+6FtwzzXPvJdskub4nkdtrYlpe 8l+FJpcT1mUzvPCwp1i78Yn+hA7YiVsflRpYAnOSD/r+r+fkXU58yyEhrSnCq657nKTz61gHDS +7H3Swe07h4maAUl6rssVaAUIlkQmzaplksqxSVpHe7t71+b7hNNBfPjUodZjagSdjG4Z8JlBO ax9IcPBNL3eZR1v7CEqg/1JvMMe/JH/S4Sx2gXuzQFxmRQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (so254-31.mailgun.net) smtp.remote-ip=198.61.254.31; dkim=pass header.d=klanderman.net header.s=mg header.a=rsa-sha256; dmarc=none header.from=klanderman.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1612830737; bh=Q7rfJ0h92xb3FrUHTMYy1Gl0HjJ9ppGiDBhBb+wIIH4=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:MIME-Version:References:Message-ID:In-Reply-To: Date:Reply-To:Subject:To:From:DKIM-Signature:DKIM-Signature; b=y/y6NCrP3qthq+vb2hwhMmwosJi09D2sLPylO0tgGMPrk/jeAbYf46kTEw4cCKs1OFelbje1Md d9MCf+FAZmoqjkE3f1AlL+cSp6AbBTU2qAgBpsZS8yoGmkkT/aZwf1IW9tQA/RttSX8BKqI65W Dk8h6fUT3hu5MgEmIiC3ghyDKgUo5hQoFB8vlnQPJ8DX9V5m+yRCjB58DV1d05Jq1YVrif34rT Qw5nvZiF7FPVF/epSULKYvqH0HdRTUKoDmJR5Lqv2utWycIzrWJq1BnwgS2vpY5+d1qCHirvrm iOyGryrUvs8igEGEBUuK6BzM71Cq8ruKrTkKXhs3QVtDDg==; 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:MIME-Version:References: Message-ID:In-Reply-To:Date:Reply-To:Subject:To:From:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=CTD2UVMatRxh+0Yq3Z1OAj219+l2w9IkvoC0anpmBaM=; b=pwxWJHGpyh5FU46+5+dhsfybpw vtM4Pn5/Rl5dnqb77swtvOzTY4H4UULnZFZuTtynIeQQ5zuodTv8pseuJhGQbULomCY2Z+8Xg7kVO N3sMAJyPst/uGTX+dDCQmWKwZgEjSx5JXSkwzKYfFfpZx5+YsaFqc2LWEFXQaRKefU9ied+I9aDou z+khcaRcP5bl5m6YaaqwMZgrfNJ3ACIHnYAnPFSqN7nke7Ga0JKp/Sx1dtX7NLNqFsUB1gr+4E9GE lowodqCTTt5npRNIF6c7QhV+mpSSDLcfOYqitwJmvDZVTBf3k1SDYJ34yzLUemldNtmXfpNcT8Qcj 1pvlHcAw==; Received: from authenticated user by zero.zsh.org with local id 1l9Gww-0008uy-MO; Tue, 09 Feb 2021 00:32:14 +0000 Authentication-Results: zsh.org; iprev=pass (so254-31.mailgun.net) smtp.remote-ip=198.61.254.31; dkim=pass header.d=klanderman.net header.s=mg header.a=rsa-sha256; dmarc=none header.from=klanderman.net; arc=none Received: from so254-31.mailgun.net ([198.61.254.31]:53295) by zero.zsh.org with utf8esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1l9Gwc-0008n3-CK; Tue, 09 Feb 2021 00:32:01 +0000 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=klanderman.net; q=dns/txt; s=mg; t=1612830715; h=Content-Type: MIME-Version: References: Message-ID: In-Reply-To: Date: Reply-To: Subject: To: From: Sender; bh=CTD2UVMatRxh+0Yq3Z1OAj219+l2w9IkvoC0anpmBaM=; b=Q8w47EuIyjgk6S5J4uRp8JiGnGz274/ApWD29PUJDhQg6hFso2fdJAvLNWw89OxznNNr6Xws teUEBNve39p+fXiiFPV2oCJMUUiu5E+1IiMNtCMWGDZE2Ihid2GzxoGscYxd2tjfEm1J4LdI nLM24RHufh+NbZN39TLtHGlRfcw= X-Mailgun-Sending-Ip: 198.61.254.31 X-Mailgun-Sid: WyIwZjNkNyIsICJ6c2gtd29ya2Vyc0B6c2gub3JnIiwgIjk3ZGJkOCJd Received: from smtp2.klanderman.net (smtp2.klanderman.net [142.93.10.110]) by smtp-out-n04.prod.us-east-1.postgun.com with SMTP id 6021d7f63919dfb45511cca5 (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Tue, 09 Feb 2021 00:31:50 GMT Received: from lwm.klanderman.net (pool-72-93-77-73.bstnma.fios.verizon.net [72.93.77.73]) by smtp2.klanderman.net (Postfix) with ESMTPSA id 9DD6B414E1; Mon, 8 Feb 2021 19:31:50 -0500 (EST) Received: by lwm.klanderman.net (Postfix, from userid 1000) id 544C229E16D4; Mon, 8 Feb 2021 19:31:50 -0500 (EST) From: Greg Klanderman To: zsh-workers@zsh.org Subject: Re: zpty intermediate zsh process? Reply-To: Greg Klanderman Date: Mon, 08 Feb 2021 19:31:50 -0500 In-Reply-To: (Bart Schaefer's message of "Sat, 6 Feb 2021 13:53:13 -0800") Message-ID: <87v9b22ia1.fsf@lwm.klanderman.net> User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.24 (linux) References: <24606.56852.904076.773054@lwm.klanderman.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Seq: 47957 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 February 6, 2021 Bart Schaefer wrote: > 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. Hmm interesting, hadn't considered but I suppose the pty might even just be executing zsh code.. I suppose this is not worth changing if it might break desirable behavior. > Maybe just passing !sigtrapped[SIGEXIT] as the third argument would > suffice ... or maybe the handling of that trap by zpty is already > iffy. Reading zexit(), I suppose also "zshexit" and "zshexit_functions". What is runhookdef(EXITHOOK, NULL); ? Greg