Page MenuHomeFreeBSD

rc.d/ddb: Really silently exit
ClosedPublic

Authored by des on Jun 19 2026, 8:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 20, 1:19 PM
Unknown Object (File)
Sun, Sep 20, 2:33 AM
Unknown Object (File)
Thu, Sep 17, 10:29 AM
Unknown Object (File)
Tue, Sep 15, 7:06 AM
Unknown Object (File)
Fri, Sep 11, 7:19 PM
Unknown Object (File)
Wed, Sep 9, 8:26 PM
Unknown Object (File)
Wed, Sep 9, 6:04 PM
Unknown Object (File)
Wed, Sep 9, 12:36 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 Not Applicable
Unit
Tests Not Applicable