1.1 --- a/libfsclient/lib/src/client.cc Sat Aug 14 18:41:57 2021 +0200
1.2 +++ b/libfsclient/lib/src/client.cc Tue Aug 17 23:44:36 2021 +0200
1.3 @@ -545,12 +545,13 @@
1.4 if (file->can_block == flags)
1.5 return L4_EOK;
1.6
1.7 - // NOTE: Set appropriate flags.
1.8 + /* Since blocking access is used with specific file notifications, the
1.9 + per-task notifier is used. */
1.10
1.11 if (flags)
1.12 - err = client_subscribe(file, flags);
1.13 + err = client_subscribe(file, flags, NOTIFIER_TASK);
1.14 else
1.15 - err = client_unsubscribe(file);
1.16 + err = client_unsubscribe(file, NOTIFIER_TASK);
1.17
1.18 if (err)
1.19 return err;
1.20 @@ -563,12 +564,12 @@
1.21
1.22 /* Subscribe from events concerning a file. */
1.23
1.24 -long client_subscribe(file_t *file, notify_flags_t flags)
1.25 +long client_subscribe(file_t *file, notify_flags_t flags, notifier_t notifier_type)
1.26 {
1.27 if (file == NULL)
1.28 return -L4_EINVAL;
1.29
1.30 - return file_notify_subscribe(file, flags);
1.31 + return file_notify_subscribe(file, flags, notifier_type);
1.32 }
1.33
1.34
1.35 @@ -587,12 +588,12 @@
1.36
1.37 /* Unsubscribe from events concerning a file. */
1.38
1.39 -long client_unsubscribe(file_t *file)
1.40 +long client_unsubscribe(file_t *file, notifier_t notifier_type)
1.41 {
1.42 if (file == NULL)
1.43 return -L4_EINVAL;
1.44
1.45 - return file_notify_unsubscribe(file);
1.46 + return file_notify_unsubscribe(file, notifier_type);
1.47 }
1.48
1.49