diff options
| author | Mateusz Guzik <mjg@FreeBSD.org> | 2014-03-26 02:25:40 +0000 |
|---|---|---|
| committer | Mateusz Guzik <mjg@FreeBSD.org> | 2014-03-26 02:25:40 +0000 |
| commit | ee38f2e0043a52d06d5fb26f7eeb9746f1e59454 (patch) | |
| tree | 925f3550fde72d2c4f0636d03ca178fb57e40432 /sbin/devd/devd.cc | |
| parent | 88ab2b6093f0485317d1c397c02b38dbd36e1329 (diff) | |
Notes
Diffstat (limited to 'sbin/devd/devd.cc')
| -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 77f74c60cea05..ce2a4f3482da0 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)); } } |
