Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
cannot hide command name from ps -e
- X-seq: zsh-workers 33457
- From: Han Pingtian <hanpt@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers <zsh-workers@xxxxxxx>
- Subject: cannot hide command name from ps -e
- Date: Mon, 13 Oct 2014 16:29:53 +0800
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: zsh-workers <zsh-workers@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hi,
"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.
I tested this on Fedora 20 with 3.16 kernel. "jobs -Z somestring" will
change /proc/$$/cmdline, and prctl() will change /proc/$$/comm.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author