1.1 --- a/libfsserver/lib/files/host_file_opener.cc Tue Aug 31 23:51:13 2021 +0200
1.2 +++ b/libfsserver/lib/files/host_file_opener.cc Sat Sep 04 23:23:32 2021 +0200
1.3 @@ -39,16 +39,6 @@
1.4 DIR *dir = opendir(path);
1.5 struct dirent *dirent;
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 /* Write directory entries to the pipe, closing the pipe when finished. */
1.18
1.19 while ((dirent = readdir(dir)) != NULL)
1.20 @@ -102,10 +92,10 @@
1.21
1.22 file_t *reader, *writer;
1.23
1.24 - // NOTE: Might be more appropriate to use lower-level file operations to
1.25 - // NOTE: avoid unnecessary mapping of the reader's memory region.
1.26 + // Mapping of the reader's memory region should be avoided because no use
1.27 + // of the reader will be made here.
1.28
1.29 - long err = client_pipe(&reader, &writer, O_NONBLOCK);
1.30 + long err = client_pipe(&reader, &writer, 0);
1.31
1.32 if (err)
1.33 return err;