Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

cannot hide command name from ps -e



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