- Fix a data race (g_interrupt_sent flag usage was not thread safe, signals can be handled on arbitrary threads)
- exit() is not signal-safe, replaced it with the signal-safe equivalent _exit()
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
It turns out the function this called, DispatchInputInterrupt, already acquires a mutex. Maybe put the synchronization in there? Then you don't have to reproduce the synchronization in both MI and LLDB