History log of /freebsd-current/bin/pkill/tests/spin_helper.c
Revision Date Author Comments
# 3610bffd 20-Mar-2023 Kyle Evans <kevans@FreeBSD.org>

pkill: use an ARG_MAX size buffer for argument matching

Right now pkill/pgrep cut off at _POSIX2_LINE_MAX (2048), but argument
strings can be much larger (ARG_MAX is 256K/512K). Stop arbitrarily
cutting the search off at 2K, rather than documenting the limit.

Reviewed by: allanjude (earlier version), des
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D38663