From: Han Pingtian <hanpt@linux.vnet.ibm.com>
To: zsh-workers@zsh.org, schaefer@brasslantern.com
Subject: Re: [PATCH] use prctl() if available with jobs -Z
Date: Sun, 18 Nov 2012 10:16:25 +0800 [thread overview]
Message-ID: <20121118021625.GB2500@localhost.localdomain> (raw)
In-Reply-To: <121117172819.ZM9878@torch.brasslantern.com>
On Sat, Nov 17, 2012 at 05:28:19PM -0800, Bart Schaefer wrote:
> 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$$; :'
>
Looks like it only works with 'ps -p $$':
% ~/temp/zsh-debug3/bin/zsh -fc 'ps p$$; jobs -Z HIDEME; ps p$$; :'
PID TTY STAT TIME COMMAND
26701 pts/7 S+ 0:00 /home/hpt/temp/zsh-debug3/bin/zsh -fc ps p$$; jobs -Z HIDEME; ps p$$; :
PID TTY STAT TIME COMMAND
26701 pts/7 S+ 0:00 /home/hpt/temp/zsh-debug3/bin/zsh -fc ps p$$; jobs -Z HIDEME; ps p$$; :
% ~/temp/zsh-debug3/bin/zsh -fc 'ps -p$$; jobs -Z HIDEME; ps -p$$; :'
PID TTY TIME CMD
26713 pts/7 00:00:00 zsh
PID TTY TIME CMD
26713 pts/7 00:00:00 HIDEME
%
prev parent reply other threads:[~2012-11-18 2:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-17 12:38 Han Pingtian
2012-11-18 1:28 ` Bart Schaefer
2012-11-18 2:16 ` Han Pingtian [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121118021625.GB2500@localhost.localdomain \
--to=hanpt@linux.vnet.ibm.com \
--cc=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).