Don't truncate existing error when writing the log.
Suggested by: markj MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
33094a87c4
commit
b7622235d0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user