First of all, I know that in the past there was a similar question .
But this question was not answered properly. Instead, he deviated from the suggestion of what to do in order to catch the signals.
So, just to clarify: I did everything I needed to process the signals. I have an application that deploys a daemon that controls the main process through a channel. If the main process fails (for example, a segmentation error), it has a signal handler that writes all the necessary information to the channel and interrupts.
The goal is to have as much information as possible when something bad happens to the application without using a โnormalโ operation such as SIGHUP, SIGUSR1, etc.
So my question is: what signals should I catch? I mean signals that I will not catch them, since the application will stop interrupting.
So far I have come up with the following list:
- SIGINT (^ C, user initiated, but still good to know)
- SIGTERM (
kill <pid> from the shell or, AFAIK, may be the result of OutOfMemory) - Sigsegv
- Sigill
- Sigfpe
- Sigbus
- SIGQUIT
Does anyone know if I miss something? kill -l has many of them ... :)
kliteyn
source share