From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11253 invoked by alias); 18 Nov 2012 01:28:36 -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: 30805 Received: (qmail 12686 invoked from network); 18 Nov 2012 01:28:24 -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 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <121117172819.ZM9878@torch.brasslantern.com> Date: Sat, 17 Nov 2012 17:28:19 -0800 In-reply-to: <20121117123817.GA20447@localhost.localdomain> Comments: In reply to Han Pingtian "[PATCH] use prctl() if available with jobs -Z" (Nov 17, 8:38pm) References: <20121117123817.GA20447@localhost.localdomain> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Han Pingtian , zsh-workers Subject: Re: [PATCH] use prctl() if available with jobs -Z MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Does this prctl call really have the same/desired effect of covering up the entire argument list in the output of "ps"? I don't have a system available where I can test it. E.g. try this: zsh -fc 'ps p$$; jobs -Z HIDEME; ps p$$; :' (the trailing ":" is to avoid tail-call optimization on forking "ps"). The whole point of "jobs -Z" was to masquerade your process when using a time-sharing system, not merely to change the value of argv[0]. You know, so the prof can't tell you're spending all day playing nethack instead of doing your CS303 homework. I'm all for using standard interfaces to accomplish standard actions, but if we're going to include a hack like this one then we ought to do our best to have the hack actually be a hack. ;-)