aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/watch/watch.c
diff options
context:
space:
mode:
authorDima Dorfman <dd@FreeBSD.org>2001-09-09 14:57:48 +0000
committerDima Dorfman <dd@FreeBSD.org>2001-09-09 14:57:48 +0000
commitfc66e618b4e581f9d16f7f8db0e30d9014769290 (patch)
treea326af5ba349ef4c8812a366fda032ffbdda5191 /usr.sbin/watch/watch.c
parent052548e9834c0d85fc9f5039b9574e04532cb448 (diff)
downloadsrc-fc66e618b4e581f9d16f7f8db0e30d9014769290.tar.gz
src-fc66e618b4e581f9d16f7f8db0e30d9014769290.zip
Notes
Diffstat (limited to 'usr.sbin/watch/watch.c')
-rw-r--r--usr.sbin/watch/watch.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/watch/watch.c b/usr.sbin/watch/watch.c
index 1cf09b94dd1e..710adbfc209b 100644
--- a/usr.sbin/watch/watch.c
+++ b/usr.sbin/watch/watch.c
@@ -23,6 +23,8 @@ static const char rcsid[] =
#include <sys/filio.h>
#include <sys/snoop.h>
#include <sys/stat.h>
+#include <sys/linker.h>
+#include <sys/module.h>
#include <err.h>
#include <locale.h>
@@ -325,6 +327,10 @@ main(ac, av)
usage();
}
+ if (modfind("snp") == -1)
+ if (kldload("snp") == -1 || modfind("snp") == -1)
+ warn("snp module not available");
+
signal(SIGINT, cleanup);
setup_scr();