summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-03-12 19:07:21 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-03-12 19:07:21 +0000
commitbb2a228f2d0bce046c9af1a32b6173d4ac522efe (patch)
treeaf5127e0b21705eccee6983fbf2572828f5e507f /share
parentc677bff3bc0b0ee4a63ab8fca32643e0eb945358 (diff)
downloadFreeBSD-src-bb2a228f2d0bce046c9af1a32b6173d4ac522efe.zip
FreeBSD-src-bb2a228f2d0bce046c9af1a32b6173d4ac522efe.tar.gz
MFC r296286,r296470,r296472,r296473,r296575:
r296286: Remove filemon->lock wrappers. r296470: Only call bwillwrite() for logging to vnodes, as other fo_write() calls do. r296472: Require kldunload -f to unload. r296473: Add missing break for r296472. r296575: FILEMON_SET_FD: Disallow changing the fd.
Diffstat (limited to 'share')
-rw-r--r--share/man/man4/filemon.418
1 files changed, 17 insertions, 1 deletions
diff --git a/share/man/man4/filemon.4 b/share/man/man4/filemon.4
index fe0c430..92876a3 100644
--- a/share/man/man4/filemon.4
+++ b/share/man/man4/filemon.4
@@ -31,7 +31,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd January 28, 2016
+.Dd March 9, 2016
.Dt FILEMON 4
.Os
.Sh NAME
@@ -125,6 +125,19 @@ function returns the value 0 if successful;
otherwise the value \-1 is returned and the global variable
.Va errno
is set to indicate the error.
+.Sh ERRORS
+The
+.Fn ioctl
+system call
+with
+.Dv FILEMON_SET_FD
+will fail if:
+.Bl -tag -width Er
+.It Bq Er EEXIST
+The
+.Nm
+handle is already associated with a file descriptor.
+.El
.Sh FILES
.Bl -tag -width ".Pa /dev/filemon"
.It Pa /dev/filemon
@@ -193,3 +206,6 @@ Only children of the set process are logged.
Processes can escape being traced by double forking.
This is not seen as a problem as the intended use is build monitoring, which
does not make sense to have daemons for.
+.Pp
+Unloading the module may panic the system, thus requires using
+.Ic kldunload -f .
OpenPOWER on IntegriCloud