]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Follow-up r297156: Close the log in filemon_dtr rather than in the last reference.
authorbdrewery <bdrewery@FreeBSD.org>
Tue, 22 Mar 2016 22:41:03 +0000 (22:41 +0000)
committerbdrewery <bdrewery@FreeBSD.org>
Tue, 22 Mar 2016 22:41:03 +0000 (22:41 +0000)
commit7b6de4a38702ecf86758cf4e9f0b5e8fe85f54e9
treeb361e3557b13fc44b1c735e7e77f83391918b34a
parentc55aa7292df20bd76969c58915352aedc12e6300
Follow-up r297156: Close the log in filemon_dtr rather than in the last reference.

If the tracer has decided to the close the log then it should be fully
written, not getting more entries, when close(2) returns.  This was
a regression in r297156 in that it allowed a traced process to continue
a traced syscall and add more entries to the log while the tracer had
already closed its fd or exited.  This was only really part of the
daemonized process case which is abnormal.

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
sys/dev/filemon/filemon.c