aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-12-24 14:04:21 +0100
committerAdrian Kummerlaender2015-12-24 14:04:21 +0100
commitc2af553b1c2de9fb158a70c5858d9c7fa527f9ee (patch)
tree658547f160d76535eddc69d384ecadaca72e0357 /src
parenta8157a2acf5ac23e58aa18fe3ddf855341790d5f (diff)
downloadchange-c2af553b1c2de9fb158a70c5858d9c7fa527f9ee.tar
change-c2af553b1c2de9fb158a70c5858d9c7fa527f9ee.tar.gz
change-c2af553b1c2de9fb158a70c5858d9c7fa527f9ee.tar.bz2
change-c2af553b1c2de9fb158a70c5858d9c7fa527f9ee.tar.lz
change-c2af553b1c2de9fb158a70c5858d9c7fa527f9ee.tar.xz
change-c2af553b1c2de9fb158a70c5858d9c7fa527f9ee.tar.zst
change-c2af553b1c2de9fb158a70c5858d9c7fa527f9ee.zip
Prevent the libraries own log writes from being tracked
Diffstat (limited to 'src')
-rw-r--r--src/change_log.cc2
-rw-r--r--src/tracking/change_tracker.cc2
2 files changed, 2 insertions, 2 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) ) {
diff --git a/src/tracking/change_tracker.cc b/src/tracking/change_tracker.cc
index 92be10c..1b554aa 100644
--- a/src/tracking/change_tracker.cc
+++ b/src/tracking/change_tracker.cc
@@ -43,7 +43,7 @@ ChangeTracker::~ChangeTracker() {
this->logger_->forward(std::get<DIFF_PROCESS>(tracked)->get_stdout());
- tracked.second->wait();
+ std::get<DIFF_PROCESS>(tracked)->wait();
}
}