Comment 7 for bug 295876

Revision history for this message
Dominique Poulain (dominique-poulain) wrote :

Confirmed on latest Xenial for top, `ps -e` and pgrep:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Xenial Xerus (development branch)
Release: 16.04
Codename: xenial

$ python3 -c 'print(len("chromium-browser"))'
16
$ pgrep chromium-browser
echo $?
1 # exit status code 1 == no processes matched (as per man page for pgrep(1))
$ pgrep chromium-browse
22351
22364
[snip]

$ cat /proc/22351/cmdline && echo
chromium-browser --enable-pinch
$ cat /proc/22351/stat
22351 (chromium-browse) S 1616 1829 1829 0 -1 4194560 37820 20451 701 0 657 236 6 2 20 0 29 0 355501 1262727168 41021 18446744073709551615 94135085649920 94135125690420 140723151897424 140723151896160 140132228684269 0 0 4096 81923 0 0 0 17 2 0 0 64 0 0 94135127791120 94135129570812 94135143915520 140723151902368 140723151902426 140723151902426 140723151904717

$ ps -e | grep chromium
22351 ? 00:00:08 chromium-browse
22364 ? 00:00:00 chromium-browse
22366 ? 00:00:00 chromium-browse
22464 ? 00:00:02 chromium-browse
22469 ? 00:00:00 chromium-browse
22557 ? 00:00:00 chromium-browse
$ top -b -n 1 -p 22351
[snip]
22351 foo 20 0 1233132 164084 118164 S 0,0 1,0 0:08.85 chromium-browse

related to LP #1174911 'pgrep cuts process names' <https://bugs.launchpad.net/ubuntu/+source/procps/+bug/1174911>