1.1 --- a/libfsclient/lib/src/notifier.cc Tue Jul 06 01:01:53 2021 +0200
1.2 +++ b/libfsclient/lib/src/notifier.cc Tue Jul 06 01:22:47 2021 +0200
1.3 @@ -102,7 +102,7 @@
1.4
1.5 /* Record the flags for the file object. */
1.6
1.7 - _affected_flags[file] |= flags;
1.8 + _affected_flags[file] = _affected_flags[file] | flags;
1.9 _affected.push_back(file);
1.10
1.11 /* Notify any waiting caller. */
1.12 @@ -130,14 +130,20 @@
1.13 if (l4_ipc_error(msg.tag, l4_utcb()))
1.14 continue;
1.15
1.16 + /* Interpret gate labels as file objects. */
1.17 +
1.18 + file_t *file = (file_t *) label;
1.19 +
1.20 + /* Obtain message details. */
1.21 +
1.22 + ipc_message_open(&msg);
1.23 +
1.24 + notify_flags_t flags = ipc_message_get_word(&msg, 0);
1.25 +
1.26 /* Reply to notifications. */
1.27
1.28 ipc_message_reply(&msg);
1.29 -
1.30 - /* Interpret gate labels as file objects. */
1.31 -
1.32 - file_t *file = (file_t *) label;
1.33 - notify_flags_t flags = ipc_message_get_word(&msg, 0);
1.34 + ipc_message_discard(&msg);
1.35
1.36 /* Register the notification. */
1.37