Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sysmon Fix WDOGIOC_GTICKLER for userland ticklers.
details: https://anonhg.NetBSD.org/src/rev/b35f166f912c
branches: trunk
changeset: 534640:b35f166f912c
user: simonb <simonb%NetBSD.org@localhost>
date: Wed Jul 31 06:48:58 2002 +0000
description:
Fix WDOGIOC_GTICKLER for userland ticklers.
diffstat:
sys/dev/sysmon/sysmon_wdog.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r cc8f35b699ce -r b35f166f912c sys/dev/sysmon/sysmon_wdog.c
--- a/sys/dev/sysmon/sysmon_wdog.c Wed Jul 31 06:43:17 2002 +0000
+++ b/sys/dev/sysmon/sysmon_wdog.c Wed Jul 31 06:48:58 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmon_wdog.c,v 1.3 2001/11/13 06:28:55 lukem Exp $ */
+/* $NetBSD: sysmon_wdog.c,v 1.4 2002/07/31 06:48:58 simonb Exp $ */
/*-
* Copyright (c) 2000 Zembu Labs, Inc.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon_wdog.c,v 1.3 2001/11/13 06:28:55 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon_wdog.c,v 1.4 2002/07/31 06:48:58 simonb Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -236,7 +236,10 @@
break;
case WDOGIOC_GTICKLER:
- *(pid_t *)data = smw->smw_tickler;
+ if ((smw = sysmon_armed_wdog) != NULL)
+ *(pid_t *)data = smw->smw_tickler;
+ else
+ error = ESRCH;
break;
case WDOGIOC_GWDOGS:
Home |
Main Index |
Thread Index |
Old Index