The '-a' flag[0] which should list the full cmd line seems to be limited
to 4096 chars[1].

In most case it is more than enough, but not always the case for java
processes with long classpaths for instance as describe in the bug
description.

[0] -a, --list-full
              List the full command line as well as the process ID. (pgrep 
only.)

[1] pgrep.c
     44
     45 #define CMDSTRSIZE 4096
     46

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1839329

Title:
  pgrep: Use POSIX _SC_ARG_MAX for maximum pgrep -f command line length

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to