-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Truncate overly long --command matches
/proc/pid/comm is at most 15 characters (plus NUL), so specifying a longer `--command` value will never match. Truncate it to the maximum and warn about it. Note that the manpage speaks about `TASK_COMM_LEN`, but that isn't defined anywhere. So define it ourselves. Fixes #33 [1] https://man7.org/linux/man-pages/man5/proc_pid_comm.5.html
- Loading branch information
1 parent
76563b9
commit 5b80e6c
Showing
2 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters