siginfo
The siginfo structure is a common component in Unix-like operating systems, used to convey detailed information about a signal that has been delivered to a process. When a signal is generated, the operating system typically provides a siginfo structure to the signal handler. This structure contains fields that describe the cause of the signal, the process or user that sent it, and other relevant data.
The contents of siginfo vary depending on the type of signal. For instance, for real-time signals, the
The siginfo structure is usually passed to a signal handler function as a pointer. The handler can