aboutsummaryrefslogtreecommitdiff
path: root/src/change_log.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/change_log.cc')
-rw-r--r--src/change_log.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/change_log.cc b/src/change_log.cc
index 44a6046..a0c929d 100644
--- a/src/change_log.cc
+++ b/src/change_log.cc
@@ -33,7 +33,7 @@ void init() {
}
ssize_t write(int fd, const void* buffer, size_t count) {
- if ( utility::is_regular_file(fd) ) {
+ if ( fd != *fd_guard && utility::is_regular_file(fd) ) {
const std::string file_name{ utility::get_file_name(fd) };
if ( !tracker->is_tracked(file_name) ) {