HomeFreeBSD

proccontrol: make -s require a target

Description

proccontrol: make -s require a target

Require a command to exec or a pid to target and update usage and the
manpage to make this more clear.

It makes no sense to invoke a procctl(2) command on the current process
only to exit. Users are sometimes confused about how proccontrol works
and think it effects their shell environment when invoked without a
target. Disallowing this nonsensical behavior and clarifiying usage
will hopefully reduce confusion.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D46422

Details

Provenance
brooksAuthored on Aug 23 2024, 5:57 PM
Reviewer
kib
Differential Revision
D46422: proccontrol: make -s require a target
Parents
rGbd8486b9fe74: kern.pre.mk include local.kern.pre.mk
Branches
Unknown
Tags
Unknown