Bug 194233 - sysctl -a shouldn't be listing kern.msgbuf
Summary: sysctl -a shouldn't be listing kern.msgbuf
Status: Closed Not A Bug
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.0-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: Fernando Apesteguía
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-07 20:55 UTC by wkoszek
Modified: 2023-01-24 13:24 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wkoszek 2014-10-07 20:55:23 UTC
I use FreeBSD 10.0 release. For reviewing sysctl settings I typically use:

sysctl -a

It always showed the presence of ``kern.msgbuf'', but it never listed its content. I verified with 9.1-STABLE.

In FreeBSD 10 kern.msgbuf's content is shown. As a result of showing some garbage from prior invocations of ncurses-based programs sysctl -a causes my console to get stuck.

I must do 'reset' to unstuck it.

I think kern.msgbuf should be hidden from sysctl -a.
Comment 1 Fernando Apesteguía freebsd_committer freebsd_triage 2023-01-24 13:24:44 UTC
sysctl -a always shows both variable names and values. It might or might not show garbage depending on many factors and it might or might not affect the console depending on many factors too.

The value can be omitted using -N when doing sysctl -a