diff options
author | mjg <mjg@FreeBSD.org> | 2014-03-31 02:53:15 +0000 |
---|---|---|
committer | mjg <mjg@FreeBSD.org> | 2014-03-31 02:53:15 +0000 |
commit | b357774f50743f92e6f3a63766ab5243e3a56265 (patch) | |
tree | ad82516cd72643b2a6a18e440e03f61e6ea7d0e6 /sbin | |
parent | e7b96c1d34456762279db22270b51e022347b212 (diff) | |
download | FreeBSD-src-b357774f50743f92e6f3a63766ab5243e3a56265.zip FreeBSD-src-b357774f50743f92e6f3a63766ab5243e3a56265.tar.gz |
MFC r263758:
Update userspace users of hw.bus.devctl_disable.
This switches the code to use hw.bus.devctl_queue instead.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/devd/devd.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/devd/devd.cc b/sbin/devd/devd.cc index ead3866..0d8162c 100644 --- a/sbin/devd/devd.cc +++ b/sbin/devd/devd.cc @@ -102,7 +102,7 @@ __FBSDID("$FreeBSD$"); #define PIPE "/var/run/devd.pipe" #define CF "/etc/devd.conf" -#define SYSCTL "hw.bus.devctl_disable" +#define SYSCTL "hw.bus.devctl_queue" /* * Since the client socket is nonblocking, we must increase its send buffer to @@ -1164,9 +1164,9 @@ check_devd_enabled() len = sizeof(val); if (sysctlbyname(SYSCTL, &val, &len, NULL, 0) != 0) errx(1, "devctl sysctl missing from kernel!"); - if (val) { - warnx("Setting " SYSCTL " to 0"); - val = 0; + if (val == 0) { + warnx("Setting " SYSCTL " to 1000"); + val = 1000; sysctlbyname(SYSCTL, NULL, NULL, &val, sizeof(val)); } } |