1.1 --- a/libfsserver/lib/files/file_pager.cc Sat Feb 25 18:10:13 2023 +0100
1.2 +++ b/libfsserver/lib/files/file_pager.cc Sat Feb 25 22:11:08 2023 +0100
1.3 @@ -52,7 +52,7 @@
1.4 {
1.5 /* Notify other users of the file and unsubscribe. */
1.6
1.7 - _provider->notify_others(_endpoint, NOTIFY_PEER_CLOSED, NOTIFY_VALUES_NULL);
1.8 + _provider->notify_others(_notifier, NOTIFY_PEER_CLOSED, NOTIFY_VALUES_NULL);
1.9 unsubscribe();
1.10
1.11 /* Detach the pager, potentially removing the file provider. */
1.12 @@ -70,7 +70,7 @@
1.13
1.14 if (_resized)
1.15 {
1.16 - _provider->notify_others(_endpoint, NOTIFY_CONTENT_AVAILABLE, NOTIFY_VALUES_NULL);
1.17 + _provider->notify_others(_notifier, NOTIFY_CONTENT_AVAILABLE, NOTIFY_VALUES_NULL);
1.18 _resized = false;
1.19 }
1.20
1.21 @@ -153,14 +153,16 @@
1.22 /* Readers can subscribe to new data (flush) and file closed events.
1.23 Writers can subscribe to file closed events. */
1.24
1.25 - return _provider->subscribe(notifier, flags, this, &_endpoint);
1.26 + _notifier = notifier;
1.27 +
1.28 + return _provider->subscribe(notifier, flags);
1.29 }
1.30
1.31 /* Unsubscribe from notifications. */
1.32
1.33 long FilePager::unsubscribe()
1.34 {
1.35 - _provider->unsubscribe(_endpoint, this);
1.36 + _provider->unsubscribe(_notifier);
1.37 return L4_EOK;
1.38 }
1.39