FreeBSD Bugzilla – Attachment 132861 Details for
Bug 177217
[patch] rc.d/ddb -- squelch warning when ddb_enable=yes but DDB missing from kernel
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 584 bytes, created by
Jeremy Chadwick
on 2013-03-22 01:20:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Jeremy Chadwick
Created:
2013-03-22 01:20:00 UTC
Size:
584 bytes
patch
obsolete
>Index: etc/rc.d/ddb >=================================================================== >--- etc/rc.d/ddb (revision 248604) >+++ etc/rc.d/ddb (working copy) >@@ -19,8 +19,11 @@ stop_cmd=":" > ddb_prestart() > { > # Silently exit if ddb is not enabled >- if [ -z "`sysctl -Nq debug.ddb.scripting.scripts`" ]; then >- return 1 >+ # NOTE: exit is needed here, not return, else rc.subr emits >+ # a "failed precmd routine" warning when ddb_enable="yes" is >+ # used on a system which lacks DDB support in the kernel. >+ if [ -z "`$SYSCTL_N -q debug.ddb.scripting.scripts`" ]; then >+ exit 1 > fi > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 177217
: 132861