Skip to content

Conversation

@chriso
Copy link
Contributor

@chriso chriso commented Jun 10, 2024

Changes to signal handling:

  • we spawn the child process in a new process group on macOS, like we were doing on Linux
  • we forward whatever signal was first received, rather than unconditionally sending SIGTERM
  • we forward the received signal to all processes in the process group

We're also now locking the OS thread before spawning the child process, to avoid issues with threads and Pdeathsig on Linux (this fixes #68).

chriso added 3 commits June 11, 2024 09:47
This is required when using Pdeathsig on Linux,
since the child process is killed when the parent
thread exits (not the parent process).
@chriso chriso self-assigned this Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Review use of Pdeathsig

4 participants