How would that fix look? If the intention is to ignore nested SIGINT then
doing it directly in the handler seems cleaner and safer (re. safety, note
that m_input_reader_stack.GetMutex() is a std::*recursive_*mutex so
depending on it in signal handlers is a big no-no. The recursive_mutex
looks like a red flag in itself, but that's something for another day)


On Fri, Sep 15, 2017 at 1:34 PM, Zachary Turner via Phabricator <
revi...@reviews.llvm.org> wrote:

> zturner added a comment.
>
> 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
>
>
> https://reviews.llvm.org/D37926
>
>
>
>
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to