Re: How can I parse the command name from /proc/pid/stat?

2014-12-06 Thread Steven Stewart-Gallus
Thank you, I dislike the idea of relying upon stat never gaining any other part that uses ) but that would work instead of using status. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: How can I parse the command name from /proc/pid/stat?

2014-12-05 Thread Suzuki K. Poulose
On 04/12/14 19:44, Steven Stewart-Gallus wrote: Hello, Given an evil hacker trying to confuse process monitors that might use such strange process names as 'pause) R 0 0 (foo' how can I correctly parse the command name from /proc/pid/stat? Maybe I should just use /proc/pid/status? Maybe

How can I parse the command name from /proc/pid/stat?

2014-12-04 Thread Steven Stewart-Gallus
Hello, Given an evil hacker trying to confuse process monitors that might use such strange process names as 'pause) R 0 0 (foo' how can I correctly parse the command name from /proc/pid/stat? Maybe I should just use /proc/pid/status? Maybe there should be some documentation written on the issue