diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2008-05-18 13:55:51 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2008-05-18 13:55:51 +0000 |
commit | 2670a520c1f30847e546ede686deb65ff033acf4 (patch) | |
tree | db176504a4aa5eb3b0a54b4ff2cade86aa6c6b10 | |
parent | c2a24c298d5529b35e8aaf66e91938d91787ed96 (diff) | |
download | FreeBSD-src-2670a520c1f30847e546ede686deb65ff033acf4.zip FreeBSD-src-2670a520c1f30847e546ede686deb65ff033acf4.tar.gz |
devctl_process_running(): Check for devsoftc.inuse == 1 instead of
devsoftc.async_proc != NULL because the latter might not be true
sometimes.
This way /etc/rc.suspend gets executed.
Reviwed by: njl
Submitted by: Mitsuru IWASAKI <iwasaki at jp.FreeBSD.org>
Tested also by: Andreas Wetzel <mickey242 at gmx.net>
MFC after: 1 week
-rw-r--r-- | sys/kern/subr_bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index 84eeb6a..85a7bc7 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -514,7 +514,7 @@ devpoll(struct cdev *dev, int events, d_thread_t *td) boolean_t devctl_process_running(void) { - return (devsoftc.async_proc != NULL); + return (devsoftc.inuse == 1); } /** |