The pgrep -f and pkill -f commands are unable to find processes strings in processes which are beyond the 4096th character. This often happens with Java command lines with long classpaths on the command line.
A quick test to reproduce this is to vi a file using a filename over 4k (e.g. vi $(seq 1 1250| paste -s -d'_')_foo.txt) and leave vi running; then try running the new pgrep -af 'foo.txt' to find it.
This bug is a mirror of what has already been reported in GitLab, through the merge request #85 [1], and has been previously reported at the merge request #80 [2], with no response/reply.
Let me know if further information is needed, at this point, to proceed. Thanks!
The pgrep -f and pkill -f commands are unable to find processes strings in processes which are beyond the 4096th character. This often happens with Java command lines with long classpaths on the command line.
A quick test to reproduce this is to vi a file using a filename over 4k (e.g. vi $(seq 1 1250| paste -s -d'_')_foo.txt) and leave vi running; then try running the new pgrep -af 'foo.txt' to find it.
This bug is a mirror of what has already been reported in GitLab, through the merge request #85 [1], and has been previously reported at the merge request #80 [2], with no response/reply.
Let me know if further information is needed, at this point, to proceed. Thanks!
[1] https:/ /gitlab. com/procps- ng/procps/ merge_requests/ 85 /gitlab. com/procps- ng/procps/ merge_requests/ 80
[2] https:/