commit | 9d57762c921e77a7237981916d3109bbd3607891 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Sat Oct 31 13:42:34 2015 -0700 |
committer | Rob Landley <rob@landley.net> | Mon Nov 02 01:40:46 2015 -0600 |
tree | 6d53451a19feb4958cf977db45e1eb3ce49fa6be | |
parent | 3c0f6a19a271a7b85d62fc85d0ac1c6f661849f2 [diff] |
Fix the ps -o CMD vs COMM distinction. "comm" is the command name without arguments, and "cmd" the command line including arguments. Confusingly, "command" is a synonym for the *latter*, not the former. This implementation of "comm" matches the GNU ps behavior where the names are truncated, but Android historically used the full name from /proc/pid/cmdline instead, so this patch isn't sufficient to let us match the Android behavior.