[PATCH] D58418: [clang][DirectoryWatcher] Upstream DirectoryWatcher

Dmitri Gribenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 31 12:58:40 PDT 2019


gribozavr added inline comments.


================
Comment at: clang/lib/DirectoryWatcher/linux/DirectoryWatcher-linux.cpp:317
+
+  if (pipe(InotifyPollingStopperFDs) == -1)
+    return nullptr;
----------------
Use pipe2() with O_CLOEXEC, to avoid leaking the file descriptors to child processes?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58418/new/

https://reviews.llvm.org/D58418





More information about the cfe-commits mailing list