Comment 2 for bug 1839329

Revision history for this message
Eric Desrochers (slashd) wrote : Re: pgrep: Use POSIX _SC_ARG_MAX for maximum pgrep -f command line length

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