[Touch-packages] [Bug 1174911] Re: pgrep does at default not always match the input of the user against the process name

2018-03-05 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: procps (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to procps in Ubuntu.
https://bugs.launchpad.net/bugs/1174911

Title:
  pgrep does at default not always match the input of the user against
  the process name

Status in procps package in Ubuntu:
  Confirmed

Bug description:
  When looking for a process with a long process name, pgrep cuts the
  process name, and so doesn't match an exact search. For example:

  # launch gnome-calculator:
  $ gnome-calculator

  # use 'ps a' to show process table - note the whole process name is present:
  $ ps a
PID TTY  STAT   TIME COMMAND
   1411 tty4 Ss+0:00 /sbin/getty -8 38400 tty4
   1417 tty5 Ss+0:00 /sbin/getty -8 38400 tty5
   1427 tty2 Ss+0:00 /sbin/getty -8 38400 tty2
   1428 tty3 Ss+0:00 /sbin/getty -8 38400 tty3
   1436 tty6 Ss+0:00 /sbin/getty -8 38400 tty6
   9417 pts/1Sl 0:00 gnome-calculator
   9426 pts/1R+ 0:00 ps a

  (some results cut for clarity)

  # now try and find it with pgrep:
  $ pgrep gnome-calculator

  # no results! however, this works:
  $ pgrep gnome-calculato

  ProblemType: Bug
  DistroRelease: Ubuntu 13.04
  Package: procps 1:3.3.3-2ubuntu5
  ProcVersionSignature: Ubuntu 3.8.0-19.29-generic 3.8.8
  Uname: Linux 3.8.0-19-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.9.2-0ubuntu8
  Architecture: amd64
  Date: Tue Apr 30 13:35:02 2013
  InstallationDate: Installed on 2012-01-17 (469 days ago)
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
  MarkForUpload: True
  SourcePackage: procps
  UpgradeStatus: Upgraded to raring on 2012-12-05 (145 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/procps/+bug/1174911/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1174911] Re: pgrep does at default not always match the input of the user against the process name

2016-03-20 Thread Sworddragon
Edit2: On thinking about this a bit more the difference between using -f
or not is the matching against the process name only and matching
against the full command line (process name + arguments). Theoretically
matching against the process name only could also be done if pgrep would
use /proc/_pid_/cmdline instead and just cut its content before the
first argument. That would all keep as it is but the character limit
would be eliminated. Or is there a special reason why pgrep does get the
process name from /proc/_pid_/stat?

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to procps in Ubuntu.
https://bugs.launchpad.net/bugs/1174911

Title:
  pgrep does at default not always match the input of the user against
  the process name

Status in procps package in Ubuntu:
  New

Bug description:
  When looking for a process with a long process name, pgrep cuts the
  process name, and so doesn't match an exact search. For example:

  # launch gnome-calculator:
  $ gnome-calculator

  # use 'ps a' to show process table - note the whole process name is present:
  $ ps a
PID TTY  STAT   TIME COMMAND
   1411 tty4 Ss+0:00 /sbin/getty -8 38400 tty4
   1417 tty5 Ss+0:00 /sbin/getty -8 38400 tty5
   1427 tty2 Ss+0:00 /sbin/getty -8 38400 tty2
   1428 tty3 Ss+0:00 /sbin/getty -8 38400 tty3
   1436 tty6 Ss+0:00 /sbin/getty -8 38400 tty6
   9417 pts/1Sl 0:00 gnome-calculator
   9426 pts/1R+ 0:00 ps a

  (some results cut for clarity)

  # now try and find it with pgrep:
  $ pgrep gnome-calculator

  # no results! however, this works:
  $ pgrep gnome-calculato

  ProblemType: Bug
  DistroRelease: Ubuntu 13.04
  Package: procps 1:3.3.3-2ubuntu5
  ProcVersionSignature: Ubuntu 3.8.0-19.29-generic 3.8.8
  Uname: Linux 3.8.0-19-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.9.2-0ubuntu8
  Architecture: amd64
  Date: Tue Apr 30 13:35:02 2013
  InstallationDate: Installed on 2012-01-17 (469 days ago)
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
  MarkForUpload: True
  SourcePackage: procps
  UpgradeStatus: Upgraded to raring on 2012-12-05 (145 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/procps/+bug/1174911/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp