Page MenuHomeFreeBSD

rc.d/ddb: Really silently exit
ClosedPublic

Authored by des on Jun 19 2026, 8:58 PM.
Tags
None
Referenced Files
F167697773: D57686.id.diff
Sun, Aug 23, 8:30 PM
F167695604: D57686.diff
Sun, Aug 23, 8:11 PM
F167686602: D57686.diff
Sun, Aug 23, 6:55 PM
Unknown Object (File)
Fri, Aug 21, 7:58 PM
Unknown Object (File)
Sat, Aug 15, 12:18 AM
Unknown Object (File)
Fri, Aug 14, 1:55 AM
Unknown Object (File)
Thu, Aug 13, 2:48 AM
Unknown Object (File)
Thu, Aug 13, 1:02 AM
Subscribers

Details

Summary

The comment says “silently exit if ddb is not enabled”, but we'd exit
with an error message.

Note that I switched the sysctl variable used to test for the presence
of ddb from debug.ddb.scripting.scripts to d.d.s.script, which has a
smaller value if set.

While here, drop a pointless fork-exec, and use ${SYSCTL_N} for
consistency.

PR: 177217
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 74031
Build 70914: arc lint + arc unit