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 7245 invoked from network); 17 May 2021 22:27:19 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 17 May 2021 22:27:19 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1621290439; b=yXPbeDhaiqPk9PJRWDC5D/5s01A69oVPi3J5ktm6/RySd1xWvX7uco9erwXXiPNUOAH0sXapjm q9hWP7FbNiyP1DAVs7bgeQoWGGtRDw+2b5NLuS+QKgEIf8AqmYHMXGqPiBv0iNOaONJgLOzbcH 8FryuxhHWNc0m/DN+AGUIySFH1xEPqCVflubK3q+Td6JaCToq57MjKrQ+gAvmsNKXxhXQfdidU 0NifLX1BpOBojy0F0hVyWbBFdbTzTUoKq/Jd9fcXdl9Wzpc3vNcNgXLttzvm7Z2Aewl5JunDmo 5l+rdM1dxG0wHDvOBX3xMNxawouxiALkpkBq+eEBajVFlg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mx.spodhuis.org) smtp.remote-ip=94.142.241.89; dkim=pass header.d=spodhuis.org header.s=d202102e2 header.a=ed25519-sha256; dkim=pass header.d=spodhuis.org header.s=d202102 header.a=rsa-sha256; dmarc=pass header.from=spodhuis.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1621290439; bh=24J5EBFgVutGKyEpSh3MAis1jb/PUdfeMh49nMnMw9c=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:Date:DKIM-Signature:DKIM-Signature:DKIM-Signature; b=ACju9gWG5ljd8g0r8Dbuwtsydt/+YkyyErvom23lXv3bhdG30ErWQxAvzNs7YZqvhBtrN0s5b7 ACEqnlznqnwlZDvlngcXZwIrVMSjPo0nxply0Jhe9mniLsTGbn43VojtNpWtevn200C4KMOd/o 82wcIECgM/1hFu36sowyktgbySrEGWMlfVEiiyLc4q/cpKz3lae0DUo+FwP0SEJkV9gBDpObUp BUsVUYcrhwgD21GIFNxT8t3sRedmGCOzn1VBHEZI7odaBuh4JBdQiDKzoW+AgUZ49+TXWQSLZy u8MSbaw3HTzYBtsQzENNI3wjrv9tkUiIK5yttbwifffakA==; 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:In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:To:From:Date:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Z3aEMqit3+ADkGjZ7bVtn2yUwWloO6xWEg2YPv7DYLQ=; b=n85tizFCvsT0Mg9lPPCPChhNNo u0loELV2zcQV+UsqTEVVVf3L//1NU8SbW/HmeqXxZUaJzUidbw7VDBlQAGj+B3SNr4e05boMgg+H6 hUJ++ktU7zotFbmRFHk7vpmDlgdcWM0PpjM9e58Pvhiw46XwT6GfcRx2cKvs4JBguRT21WB78wa4d zozJ7Zl4GxAYuBjfsADKXRBwpnc2QgDipCeGAuxoor63V8dVaSkErUT/5Df/pe3uQIU2/Hbx8eEV4 PWoIuxhNqydyEiWgc989psm6r6tIrOVJeaGgtD3fCekFVYIz9xFUfpO0ZgKUKEZKytA88NhQhC85x RlL4W49Q==; Received: from authenticated user by zero.zsh.org with local id 1lilhn-0008m4-3W; Mon, 17 May 2021 22:27:19 +0000 Authentication-Results: zsh.org; iprev=pass (mx.spodhuis.org) smtp.remote-ip=94.142.241.89; dkim=pass header.d=spodhuis.org header.s=d202102e2 header.a=ed25519-sha256; dkim=pass header.d=spodhuis.org header.s=d202102 header.a=rsa-sha256; dmarc=pass header.from=spodhuis.org; arc=none Received: from mx.spodhuis.org ([94.142.241.89]:36532) (DNSSEC AD) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lilhY-0008Ul-EK; Mon, 17 May 2021 22:27:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d202102; h=OpenPGP:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:To:From:Date:From:Reply-To:Subject:Date:To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:OpenPGP:Organization :Auto-Submitted; bh=Z3aEMqit3+ADkGjZ7bVtn2yUwWloO6xWEg2YPv7DYLQ=; t=1621290424; x=1622500024; b=2OLgsxG4PFAOyZbjr+5Czl770ANiHK3lQEheHF4OBSl1i4m MgttwE7SwzCyvOAFm0q9aIFvvqB5X35lXVbCmisydZU3nLTEg2dB90WmVkdzmYHu7xUejlauW6tQB QLHQAq36ncwzqxMMSb1qto/YnOMkorxiKUdf3bh8N7uHO51+5PnG4r98G1kxdh03uRVdceN8OXfwg 7v3YLCb+24GOCmKDxQL/StqEljdICEG4k7jC5e45+dDC8uEZapUSvb3h8x6wuA3GWzr22XTAJvH3v MdrU8Nkude3C5b9RI3MeqoIbPzRh7x8OlTKHdJ5w4t0SMA0Np3PH6ZmkJuNeNf/g==; DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d202102e2; h=OpenPGP:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:To:From:Date:From:Reply-To:Subject:Date:To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:OpenPGP:Organization :Auto-Submitted; bh=Z3aEMqit3+ADkGjZ7bVtn2yUwWloO6xWEg2YPv7DYLQ=; t=1621290424; x=1622500024; b=6KHkcM56B68hGEWcQt+vy8HCeFoQEbBFIegaqXk+UfRrg5b 6Tn6REXrMJ/DyzdK4Y1eCtkFo6Xr74pEwEBC3DA==; Received: from authenticated user by smtp.spodhuis.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lilhW-0008Uf-VH; Mon, 17 May 2021 22:27:03 +0000 Date: Mon, 17 May 2021 18:27:00 -0400 From: Phil Pennock To: zsh-workers@zsh.org Subject: Re: $PPID not updated when the PPID changes (parent killed) Message-ID: Mail-Followup-To: zsh-workers@zsh.org References: <20210516152418.GA39669@zira.vinc17.org> <20210517202608.GA3255290@zira.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: OpenPGP: url=https://www.security.spodhuis.org/PGP/keys/keys-2013rsa-2020cv25519.asc X-Seq: 48867 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: On 2021-05-17 at 14:00 -0700, Bart Schaefer wrote: > Still mulling over possible rewording (at the very least change "for" > to "with" in that phrase). Suggestions that don't try to explain unix > process hierarchy management in detail, are welcome. PPID The initial parent process ID; that is, the process ID of the process which created this shell process, at the time that it did so. Just as for $$, the value is only set for the original shell and does not dynamically change for implicit subshells (as created for (list) and for pipelines). I am unsure of the subshells to implicit subshells and the parenthetical note. It's an attempt to be clearer that "if you run zsh within zsh, that's not a subshell, sure _that_ gets $$ and $PPID reset". -Phil