| Summary: | FreeBSD 12.0-BETA - pkill/pgrep have 20 chars limit | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Slawomir Wojciech Wojtczak <vermaden> |
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed Not A Bug | ||
| Severity: | Affects Only Me | CC: | yuripv |
| Priority: | --- | ||
| Version: | 12.0-STABLE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Slawomir Wojciech Wojtczak
2018-11-12 19:40:45 UTC
This is likely due to command name having size of (COMMLEN + 1) (which is 19 + 1 for terminating NUL character) in struct kinfo_proc. Note that pgrep in linux seems to have the same limitation. Use `pgrep -f` (match against full argument list) for workaround. (In reply to Yuri Pankov from comment #1) Thank You for this, missed that in the man page. Regards. |