From 2670a520c1f30847e546ede686deb65ff033acf4 Mon Sep 17 00:00:00 2001 From: rpaulo Date: Sun, 18 May 2008 13:55:51 +0000 Subject: 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 Tested also by: Andreas Wetzel MFC after: 1 week --- sys/kern/subr_bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern') 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); } /** -- cgit v1.1