1.1 --- a/libfsclient/lib/src/notifier.cc Tue Jul 06 00:45:25 2021 +0200
1.2 +++ b/libfsclient/lib/src/notifier.cc Tue Jul 06 01:01:53 2021 +0200
1.3 @@ -100,9 +100,9 @@
1.4 {
1.5 std::unique_lock<std::mutex> guard(_lock);
1.6
1.7 - /* Record the flags in the file object. */
1.8 + /* Record the flags for the file object. */
1.9
1.10 - file->notifications = flags;
1.11 + _affected_flags[file] |= flags;
1.12 _affected.push_back(file);
1.13
1.14 /* Notify any waiting caller. */
1.15 @@ -193,6 +193,9 @@
1.16 {
1.17 *file = _affected.front();
1.18 _affected.pop_front();
1.19 +
1.20 + (*file)->notifications = _affected_flags[*file];
1.21 + _affected_flags.erase(*file);
1.22 return L4_EOK;
1.23 }
1.24 else