The initial naive approach to simulate SIGINT on Fuchsia was to getchar and look for ETX. This caused the InterruptHandler thread to lock stdin, preventing musl's exit() from being able to close the stdio descriptors and complete. This change uses select() instead.
Details
Details
Diff Detail
Diff Detail
- Repository
- rCRT Compiler Runtime
Event Timeline
lib/fuzzer/FuzzerUtilFuchsia.cpp | ||
---|---|---|
56 | Do you need to specify the timeout? Why not just block forever? |
Comment Actions
Yeah, I mistakenly thought select might grab the iolock on stdio in musl. Using a null timeout works fine and simplifies things.
Do you need to specify the timeout? Why not just block forever?