[PATCH] D45636: Make InterruptHandler non-blocking for Fuchsia
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 16 03:59:53 PDT 2018
phosek added inline comments.
================
Comment at: lib/fuzzer/FuzzerUtilFuchsia.cpp:56
+ FD_SET(STDIN_FILENO, &readfds);
+ select(STDIN_FILENO + 1, &readfds, nullptr, nullptr, &timeout);
+ } while(!FD_ISSET(STDIN_FILENO, &readfds) || getchar() != 0x03);
----------------
Do you need to specify the timeout? Why not just block forever?
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D45636
More information about the llvm-commits
mailing list