Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support setting signal masks for child processes on Unix #100737

Closed
wants to merge 2 commits into from

Commits on Aug 27, 2022

  1. Implement sigdelset and sigismember for Android

    We're going to need this for upcoming signal mask support.
    sunshowers committed Aug 27, 2022
    Configuration menu
    Copy the full SHA
    7b9651f View commit details
    Browse the repository at this point in the history
  2. Support blocking and unblocking signals for child processes on Unix

    This commit implements basic support for setting signal masks during process spawning.
    
    * With the `posix_spawn` code path, this means setting `posix_spawnattr_setsigmask`.
    * With the `fork/exec` path, this means calling `pthread_sigmask` in the child before executing it.
    
    This also fixes a bug: previously, we were always setting the signal mask to
    the empty set, breaking tools like `nohup`. With this change, we inherit
    the signal mask from the parent by default.
    sunshowers committed Aug 27, 2022
    Configuration menu
    Copy the full SHA
    ac8fac2 View commit details
    Browse the repository at this point in the history