summaryrefslogtreecommitdiff
path: root/sys/dev/sysmon/sysmonvar.h
diff options
context:
space:
mode:
authordyoung <dyoung@NetBSD.org>2007-12-16 21:07:45 +0000
committerdyoung <dyoung@NetBSD.org>2007-12-16 21:07:45 +0000
commit10bb018ab235fff40669c3252b0263ff50dacb88 (patch)
tree77508927e35688a7a8a0e8f85b63b719f0c63445 /sys/dev/sysmon/sysmonvar.h
parent471ee9702cbac06638ab5ddd6a96a5d8885c9bba (diff)
In sysmon_wdog_unregister(), do not return until all of the watchdog
timer's users are gone. A signal cancels the unregister: sysmon_wdog_unregister() leaves the watchdog registered. The only user of sysmon_wdog_unregister() that I can find is in elansc(4), so this looks like a safe change to make.
Diffstat (limited to 'sys/dev/sysmon/sysmonvar.h')
-rw-r--r--sys/dev/sysmon/sysmonvar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sysmon/sysmonvar.h b/sys/dev/sysmon/sysmonvar.h
index 8cb0f190464..231f777b649 100644
--- a/sys/dev/sysmon/sysmonvar.h
+++ b/sys/dev/sysmon/sysmonvar.h
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmonvar.h,v 1.22 2007/11/20 17:24:32 xtraeme Exp $ */
+/* $NetBSD: sysmonvar.h,v 1.23 2007/12/16 21:07:46 dyoung Exp $ */
/*-
* Copyright (c) 2000 Zembu Labs, Inc.
@@ -137,7 +137,7 @@ int sysmonclose_wdog(dev_t, int, int, struct lwp *);
int sysmonioctl_wdog(dev_t, u_long, void *, int, struct lwp *);
int sysmon_wdog_register(struct sysmon_wdog *);
-void sysmon_wdog_unregister(struct sysmon_wdog *);
+int sysmon_wdog_unregister(struct sysmon_wdog *);
void sysmon_wdog_init(void);