Here are some other common signals in Unix-like operating systems:
-
SIGHUP (1): Sent to a process when its controlling terminal is closed. Often used to indicate that a user has logged out.
-
SIGQUIT (3): Sent when the user types
Ctrl+\. It causes the process to terminate and produce a core dump. -
SIGILL (4): Sent when a process attempts to execute an illegal instruction.
-
SIGABRT (6): Sent by the
abortfunction to indicate abnormal termination. -
SIGFPE (8): Sent when a process performs an erroneous arithmetic operation, such as division by zero.
-
SIGKILL (9): Forces a process to terminate immediately. This signal cannot be caught or ignored.
-
SIGSEGV (11): Sent when a process makes an invalid memory reference, causing a segmentation fault.
-
SIGPIPE (13): Sent to a process when it attempts to write to a pipe that has no readers.
-
SIGUSR1 (10) and SIGUSR2 (12): User-defined signals that can be used for custom purposes in applications.
-
SIGTERM (15): As mentioned earlier, it requests the termination of a process.
These signals can be handled or ignored by processes, allowing for more graceful shutdowns or specific actions in response to certain events.
