[Touch-packages] [Bug 1174911] Re: pgrep cuts process names

2016-03-19 Thread Sworddragon
This is indeed useful information you have found but makes the bug not invalid as this means pgreps matching behavior is defect as demonstrated in the startpost. If pgrep matches against cut process names it should also internally cut the input of the user (or automatically switch to /proc/_pid_/cm

[Touch-packages] [Bug 1174911] Re: pgrep cuts process names

2016-03-19 Thread Dominique Poulain
A correction to my previous comment: states that pgrep gets the process' name from /proc//stat, not /proc//status, as I wrote, and appears to be correct. cat /proc/22351/stat 22351 (chromium-browse) S 1616 1829 1829 0 -1 41

[Touch-packages] [Bug 1174911] Re: pgrep cuts process names

2016-03-19 Thread Dominique Poulain
Confirmed on latest Xenial: $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:Ubuntu Xenial Xerus (development branch) Release:16.04 Codename: xenial Related to LP #295876 'top and ps truncate command after 15 chars' at

[Touch-packages] [Bug 1174911] Re: pgrep cuts process names

2016-03-19 Thread Dominique Poulain
led me to review pgrep(1)'s man page (which it references). Under 'NOTES', the man page states: "The process name used for matching is limited to the 15 characters present in the output of /proc/pid/stat. Use the -f option