As in title.
These commands will fail:
# pkill gvfs-hal-volume-monitor
# pgrep gvfs-hal-volume-monitor
These commands work:
# pkill gvfs-hal-volume-mon
# pgrep gvfs-hal-volume-mon
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.