aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/filemon
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2016-01-29 00:44:28 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2016-01-29 00:44:28 +0000
commit6137c5d990cf7560d5906a409b6812f932246289 (patch)
tree9d0056ef2e313521be2a4244d154f6065fdf3fc4 /sys/dev/filemon
parentaeae6079b49631c133c2e6f0d0454e32614a40a4 (diff)
Notes
Diffstat (limited to 'sys/dev/filemon')
-rw-r--r--sys/dev/filemon/filemon.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/filemon/filemon.c b/sys/dev/filemon/filemon.c
index 0ec83465dbed..4f24bbbb6c19 100644
--- a/sys/dev/filemon/filemon.c
+++ b/sys/dev/filemon/filemon.c
@@ -221,10 +221,9 @@ filemon_open(struct cdev *dev, int oflags __unused, int devtype __unused,
filemon = malloc(sizeof(struct filemon), M_FILEMON,
M_WAITOK | M_ZERO);
sx_init(&filemon->lock, "filemon");
+ filemon->pid = -1;
}
- filemon->pid = curproc->p_pid;
-
devfs_set_cdevpriv(filemon, filemon_dtr);
/* Get exclusive write access. */