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

Add signal examples #11

Open
domfarolino opened this issue Jan 9, 2018 · 0 comments
Open

Add signal examples #11

domfarolino opened this issue Jan 9, 2018 · 0 comments
Assignees

Comments

@domfarolino
Copy link
Owner

We want examples demonstrating/do the following:

  • That the process mask changes temporarily in signal handlers
  • Check the pending signals for a process in a signal handler via sigpending
  • Show the coalescence of pending signals of the same type (this can be done by letting signals accumulate either in a slow handler (that lets the sigs accumulate) or by explicitly blocking signals of a certain type (letting sigs accumulate), and then unblocking the signals and showing how many times the handler is run (prob 1).
  • sigprocmask vs pthread_sigmask
    • Demonstrate how setting a thread's signal mask doesn't change the containing process's signal mask, thus allowing threads to selectively choose which signals they can and cannot handle.
@domfarolino domfarolino self-assigned this Jan 9, 2018
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

No branches or pull requests

1 participant