I don’t think this is a duplicate. I have a very specific question about what happens to other threads when a signal handler is invoked. I have a multithreaded program that plays with hardware. On getting SIGTERM (from a parent process), I want the signal handler to set the state of the hardware to a given state, and exit(1). I