[all-commits] [llvm/llvm-project] 08ce2b: [lldb] [MainLoop] Support multiple callbacks per s...

Michał Górny via All-commits all-commits at lists.llvm.org
Wed Apr 21 03:18:47 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 08ce2ba518031425643ce3a4a0476f770c9b8dcd
      https://github.com/llvm/llvm-project/commit/08ce2ba518031425643ce3a4a0476f770c9b8dcd
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2021-04-21 (Wed, 21 Apr 2021)

  Changed paths:
    M lldb/include/lldb/Host/MainLoop.h
    M lldb/source/Host/common/MainLoop.cpp
    M lldb/unittests/Host/MainLoopTest.cpp

  Log Message:
  -----------
  [lldb] [MainLoop] Support multiple callbacks per signal

Support registering multiple callbacks for a single signal.  This is
necessary to support multiple co-existing native process instances, with
separate SIGCHLD handlers.

The system signal handler is registered on first request, additional
callback are added on subsequent requests.  The system signal handler
is removed when last callback is unregistered.

Differential Revision: https://reviews.llvm.org/D100418




More information about the All-commits mailing list