diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2016-01-29 00:44:28 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2016-01-29 00:44:28 +0000 |
commit | ac9c98889cf83d797f36d430ae2eec8b5a5c9c20 (patch) | |
tree | 9d0056ef2e313521be2a4244d154f6065fdf3fc4 | |
parent | bab4c585f372eb9a2b1a18bc94709c64ab9724d4 (diff) | |
download | FreeBSD-src-ac9c98889cf83d797f36d430ae2eec8b5a5c9c20.zip FreeBSD-src-ac9c98889cf83d797f36d430ae2eec8b5a5c9c20.tar.gz |
filemon_open: Don't record a process to trace here.
Only ioctl(FILEMON_SET_PID) should be setting the process-to-be-traced.
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
-rw-r--r-- | sys/dev/filemon/filemon.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/filemon/filemon.c b/sys/dev/filemon/filemon.c index 0ec8346..4f24bbb 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. */ |