Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proccontrol: make -s require a target #2205

Merged
merged 1 commit into from
Aug 26, 2024
Merged

Conversation

brooksdavis
Copy link
Member

This conflicts locally so merging now to hopefully save @bsdjhb some effort.

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

(cherry picked from commit 70174ef7d2c80abdfca0e3ad9d0bb1af61318542) (cherry picked from commit 5cbb98c8259c48ba22c8359f4c14f5438329ce58)

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

(cherry picked from commit 70174ef7d2c80abdfca0e3ad9d0bb1af61318542)
(cherry picked from commit 5cbb98c8259c48ba22c8359f4c14f5438329ce58)
@jrtc27
Copy link
Member

jrtc27 commented Aug 23, 2024

What’s with the double cherry-pick?

@brooksdavis
Copy link
Member Author

What’s with the double cherry-pick?

I squashed in the doc date bump I remember the moment after git push

@bsdjhb bsdjhb merged commit 36925d6 into dev Aug 26, 2024
29 checks passed
@bsdjhb bsdjhb deleted the proccontrol-require-target branch August 26, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants