summaryrefslogtreecommitdiff
path: root/sys/dev/filemon
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2016-05-27 23:58:00 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2016-05-27 23:58:00 +0000
commitb7622235d0e563c2609371f489b305d67f6e8358 (patch)
tree1d330ac0368fbd1f1a7476f152997dc014b8e856 /sys/dev/filemon
parent33094a87c42dc096185f59d31a558ea60a1fbdca (diff)
Notes
Diffstat (limited to 'sys/dev/filemon')
-rw-r--r--sys/dev/filemon/filemon_wrapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/filemon/filemon_wrapper.c b/sys/dev/filemon/filemon_wrapper.c
index ba4fe1603249..1b304d2e370f 100644
--- a/sys/dev/filemon/filemon_wrapper.c
+++ b/sys/dev/filemon/filemon_wrapper.c
@@ -66,7 +66,7 @@ filemon_output(struct filemon *filemon, char *msg, size_t len)
bwillwrite();
error = fo_write(filemon->fp, &auio, filemon->cred, 0, curthread);
- if (error != 0)
+ if (error != 0 && filemon->error == 0)
filemon->error = error;
}