1.1 --- a/libfsserver/lib/pipes/pipe_pager.cc Thu May 20 00:01:53 2021 +0200
1.2 +++ b/libfsserver/lib/pipes/pipe_pager.cc Mon Jun 07 00:50:14 2021 +0200
1.3 @@ -58,7 +58,7 @@
1.4
1.5 /* Notify the other endpoint. */
1.6
1.7 - _paging->notify(_writing);
1.8 + _paging->notify(_writing, NOTIFY_PEER_CLOSED);
1.9 }
1.10
1.11 /* Support paging. */
1.12 @@ -154,7 +154,9 @@
1.13
1.14 *size = _size;
1.15
1.16 - _paging->notify(_writing);
1.17 + // NOTE: Perhaps employ a distinct event type for metadata updates.
1.18 +
1.19 + _paging->notify(_writing, NOTIFY_CONTENT_AVAILABLE | NOTIFY_SPACE_AVAILABLE);
1.20 return L4_EOK;
1.21 }
1.22
1.23 @@ -164,11 +166,10 @@
1.24
1.25 long PipePager::subscribe(notify_flags_t flags, l4_cap_idx_t *irq)
1.26 {
1.27 - // NOTE: Need to interpret flags.
1.28 - // NOTE: Readers can subscribe to new data (at end), and pipe closed events.
1.29 - // NOTE: Writers can subscribe to new space and pipe closed events.
1.30 + /* Readers can subscribe to new data (at end), and pipe closed events.
1.31 + Writers can subscribe to new space and pipe closed events. */
1.32
1.33 - *irq = _paging->subscribe(_writing);
1.34 + *irq = _paging->subscribe(_writing, flags);
1.35 return L4_EOK;
1.36 }
1.37