summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/syscall/uadmin.c
diff options
context:
space:
mode:
authorJoshua M. Clulow <jmc@joyent.com>2013-08-04 08:48:11 -0700
committerRobert Mustacchi <rm@joyent.com>2013-08-12 07:57:13 -0700
commita288e5a9793fdffe5e842d7e61ab45263e75eaca (patch)
treea51d5e245726ea8e85f9dd1e81a321748916d196 /usr/src/uts/common/syscall/uadmin.c
parent2a17138d7a5102bc6e0bf0444224cd0c416d98f0 (diff)
downloadillumos-joyent-a288e5a9793fdffe5e842d7e61ab45263e75eaca.tar.gz
3975 ddi_periodic_add(9F) is entirely rubbish
Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Richard Lowe <richlowe@richlowe.net> Approved by: Dan McDonald <danmcd@nexenta.com>
Diffstat (limited to 'usr/src/uts/common/syscall/uadmin.c')
-rw-r--r--usr/src/uts/common/syscall/uadmin.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/src/uts/common/syscall/uadmin.c b/usr/src/uts/common/syscall/uadmin.c
index 1bdfbbfd0b..2dda4001bf 100644
--- a/usr/src/uts/common/syscall/uadmin.c
+++ b/usr/src/uts/common/syscall/uadmin.c
@@ -22,6 +22,7 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright 2013 Joyent, Inc. All rights reserved.
*/
#include <sys/param.h>
@@ -47,6 +48,7 @@
#include <sys/cmn_err.h>
#include <sys/panic.h>
#include <sys/ddi.h>
+#include <sys/ddi_periodic.h>
#include <sys/sunddi.h>
#include <sys/policy.h>
#include <sys/zone.h>
@@ -284,6 +286,12 @@ kadmin(int cmd, int fcn, void *mdep, cred_t *credp)
(void) VFS_MOUNTROOT(rootvfs, ROOT_UNMOUNT);
vfs_syncall();
+ /*
+ * Check for (and unregister) any DDI periodic handlers that
+ * still exist, as they most likely constitute resource leaks:
+ */
+ ddi_periodic_fini();
+
dump_ereports();
dump_messages();