[Lldb-commits] [PATCH] D126770: [lldb] [Process/FreeBSD] Do not send SIGSTOP to stopped process

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 10 02:31:30 PDT 2022


labath added a comment.
Herald added a subscriber: JDevlieghere.

This still leaves the possibility of a race where the process stops on its own while you're in the process of sending the signal, right?

I believe that on linux we handling this by checking the stopped events: If the application stopped due to a signal from us (siginfo->si_pid == getpid()) *and* we're not currently trying to stop a process, then we transparently resume it. Maybe you need to do the same here?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126770/new/

https://reviews.llvm.org/D126770



More information about the lldb-commits mailing list