From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.devel Subject: Re: process-attributes-ps-args / process-attributes-ps-format for Darwin Date: Tue, 12 Apr 2022 19:41:36 +0300 Message-ID: References: <87wnfu217r.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32560"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 12 18:43:11 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1neJbg-0008A5-46 for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Apr 2022 18:43:09 +0200 Original-Received: from localhost ([::1]:54696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1neJbe-0001HF-Op for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Apr 2022 12:43:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58310) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neJaI-0007mA-JP for emacs-devel@gnu.org; Tue, 12 Apr 2022 12:41:43 -0400 Original-Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:42877) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neJaG-00006L-Lp for emacs-devel@gnu.org; Tue, 12 Apr 2022 12:41:42 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 4D4DD320157F; Tue, 12 Apr 2022 12:41:39 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 12 Apr 2022 12:41:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1649781698; x=1649868098; bh=BIRTUl0+r3 6puucQf9Qo8/uPxeQkr6mEml2kmEff9BE=; b=Y1yIacKLxQOOsLLlIhmOqe+1ek J/E1bzQ/dJMtokZNdeh/Xsl8KN08cZTMoX5hLMs0wLU9MInDxRWUz9X49of/W5CS 8Chrc8sF/7qwpw03vXsyvJl+IyYfdLnM9tx1DSqm43aabIwwOaCB+/B2vrXZCnBI i3hD2/uNz8/WJ4Tb2+OzdgGz1HikskqzkRTYrO0OLyaaG7tBjNoAPuacNzvfKG56 H4HtepnzvKxMzpa4zH9EFLiyFKzVbDp6KqaJHunkB7eMujxmqoH1ClWGgwDnPwxV bK3z6JQf/hpwSo4kt1Cd/YUbEGOeKn6wRVlF94q4DCAffNbuTseivSY/nPOA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1649781698; x= 1649868098; bh=BIRTUl0+r36puucQf9Qo8/uPxeQkr6mEml2kmEff9BE=; b=f puHnZJptwCYjTWBUBiBPJ9hMTP2UAZUUzNfAt+nigFU1EIXjWC3rhQ3T1e7Xty9q jpeIZD74C6QouXRVADw16NaynioOAVfz7ZVrD5SzaZxUhzGHCRBYJ+8Y2MVpkQX1 7iSQ4cU9r4CXd/p73cJP2P4ORulfAuUimdho95movyQSgvK6gvjhCBAC+BhjeAKS gvgA+wwHkLuW/PsCQAg/X6NtlPvE3dGiXNjKfA/LDkJ14eql3I0UU0KEcB8cX0CY ALo8jThjYCMegxk/QpDm5julZROJPh1MleI/oJ47HO/MJDePU7iOtC4xDLn1KU63 Zzfhf2wOgYJd0lrh3tVYg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudekkedguddtvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffujghffgffkfggtgesthdtredttdertdenucfhrhhomhephfhilhhi phhpucfiuhhnsghinhcuoehfghhunhgsihhnsehfrghsthhmrghilhdrfhhmqeenucggtf frrghtthgvrhhnpedvveekffdvueevhfdutdejheekvdeufeevtedttdevuddugfeiffei veeivefhtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehfghhunhgsihhnsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 12 Apr 2022 12:41:38 -0400 (EDT) In-Reply-To: <87wnfu217r.fsf@gmx.de> (Michael Albinus's message of "Tue, 12 Apr 2022 09:46:32 +0200") Mail-Followup-To: Michael Albinus , emacs-devel@gnu.org Received-SPF: pass client-ip=64.147.123.19; envelope-from=fgunbin@fastmail.fm; helo=wout3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:288314 Archived-At: On 12/04/2022 09:46 +0200, Michael Albinus wrote: > Filipp Gunbin writes: > >> Hello Michael, > > Hi Filipp, > >> Here's the patch for Darwin. > > Thanks for this, I've applied it in your name. > >> Also I've added a piece of code to automatically set profile for local >> sudo case, so the users on macOS don't see the empty list in Proced by >> default. > > Yep. I've adapted it a little bit; there's no need to discriminate for > "sudo" profile and "root" user. The ps command shall behave similar for > everybody on a macOS machine. > >> Strangely, ps on macOS doesn't have keyword to output group name, so >> I've omitted it. > > Some attributes are also missing for other systems. I believe, the most > important attributes we need are `pid', `comm', and `state'. > >> Thanks, >> Filipp > > Best regards, Michael. Great, thank you!