What is the best way in C on Linux for setting up a program that can handle multiple POSIX-signals with the same function?
For example in my code I have a handler fu
Is this the correct way to set up this type of handling?
Not quite - it's not safe to use printf() inside a signal handler, but you can still use write() to stdout or stderr.
write()
stdout
stderr