1.1 --- a/libfsserver/lib/pipes/pipe_pager.cc Sat Feb 25 18:10:13 2023 +0100
1.2 +++ b/libfsserver/lib/pipes/pipe_pager.cc Sat Feb 25 22:11:08 2023 +0100
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * A pipe pager providing access to pipe content and navigation support.
1.6 *
1.7 - * Copyright (C) 2021, 2022 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2021, 2022, 2023 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or
1.11 * modify it under the terms of the GNU General Public License as
1.12 @@ -185,16 +185,17 @@
1.13 /* Readers can subscribe to new data (at end), and pipe closed events.
1.14 Writers can subscribe to new space and pipe closed events. */
1.15
1.16 + _notifier = notifier;
1.17 +
1.18 return _paging->subscribe(_writing ? PipePaging::WRITER : PipePaging::READER,
1.19 - notifier, flags, this);
1.20 + notifier, flags);
1.21 }
1.22
1.23 /* Unsubscribe from notifications. */
1.24
1.25 long PipePager::unsubscribe()
1.26 {
1.27 - _paging->unsubscribe(_writing ? PipePaging::WRITER : PipePaging::READER,
1.28 - this);
1.29 + _paging->unsubscribe(_notifier);
1.30 return L4_EOK;
1.31 }
1.32