From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26151 invoked by alias); 13 Oct 2014 17:27:08 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 33463 Received: (qmail 13768 invoked from network); 13 Oct 2014 17:27:06 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <141013102731.ZM6555@torch.brasslantern.com> Date: Mon, 13 Oct 2014 10:27:31 -0700 In-reply-to: <20141013082953.GA3486@localhost.localdomain> Comments: In reply to Han Pingtian "cannot hide command name from ps -e" (Oct 13, 4:29pm) References: <20141013082953.GA3486@localhost.localdomain> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers Subject: Re: cannot hide command name from ps -e MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Oct 13, 4:29pm, Han Pingtian wrote: } } "jobs -Z somestring" does hide command name when being checked by "ps } aux", but it doesn't when being checked by "ps -e". And looks like if } want to deceive "ps -e", we can use prctl() on linux. There's your previous potential patch here: http://www.zsh.org/mla/workers//2012/msg00708.html It may not apply cleanly any longer. The discussion following that patch seemed to indicate that prctl() also did not hide the command line in all cases. Maybe the right thing is to use all possible such mechanisms at the same time, rather than attempt to choose just one at configure time.