What’s really fun is mixing signal handling and threads, especially on Linux. There is a simple way to do it and about a thousand ways that include at least one gotcha.
What’s the simple way? Self-pipe?
What’s the simple way? Self-pipe?