Page MenuHomeFreeBSD

rc.d/ddb: Really silently exit
ClosedPublic

Authored by des on Fri, Jun 19, 8:58 PM.
Tags
None
Referenced Files
F161433966: D57686.id180107.diff
Fri, Jul 3, 5:30 PM
F161433777: D57686.id180107.diff
Fri, Jul 3, 5:27 PM
Unknown Object (File)
Fri, Jul 3, 2:02 AM
Unknown Object (File)
Thu, Jul 2, 6:06 AM
Unknown Object (File)
Thu, Jul 2, 6:03 AM
Unknown Object (File)
Wed, Jul 1, 6:14 AM
Unknown Object (File)
Sat, Jun 27, 8:08 PM
Unknown Object (File)
Sat, Jun 27, 8:07 PM
Subscribers

Details

Reviewers
kevans
Group Reviewers
rc
Commits
rGb0d3a2889a1b: rc.d/ddb: Really silently exit
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