1.1 --- a/libfsserver/lib/files/ext2_file_opener.cc Tue Aug 17 23:44:36 2021 +0200
1.2 +++ b/libfsserver/lib/files/ext2_file_opener.cc Sat Aug 21 19:26:33 2021 +0200
1.3 @@ -79,16 +79,6 @@
1.4
1.5 static void _read_directory(Ext2FileOpener *opener, fileid_t fileid, file_t *writer)
1.6 {
1.7 - /* Subscribe to space and closure notifications on the pipe. */
1.8 -
1.9 - long err = client_set_blocking(writer, NOTIFY_SPACE_AVAILABLE | NOTIFY_PEER_CLOSED);
1.10 -
1.11 - if (err)
1.12 - {
1.13 - client_close(writer);
1.14 - return;
1.15 - }
1.16 -
1.17 opener->read_directory(fileid, writer);
1.18
1.19 client_close(writer);
1.20 @@ -131,7 +121,7 @@
1.21 // NOTE: Might be more appropriate to use lower-level file operations to
1.22 // NOTE: avoid unnecessary mapping of the reader's memory region.
1.23
1.24 - long err = client_pipe(&reader, &writer);
1.25 + long err = client_pipe(&reader, &writer, 0);
1.26
1.27 if (err)
1.28 return err;
1.29 @@ -148,7 +138,7 @@
1.30 /* Discard the reader structure but preserve the capability. */
1.31
1.32 reader->ref = L4_INVALID_CAP;
1.33 - file_close(reader);
1.34 + client_close(reader);
1.35
1.36 /* Return an indication that the capability will be propagated and not
1.37 retained. This is explicitly supported by the opener context. */