What are other common signals?

QuestionsQuestions8 SkillsProBash Trap CommandOct, 27 2025
080

Here are some other common signals in Unix-like operating systems:

  1. SIGHUP (1): Sent to a process when its controlling terminal is closed. Often used to indicate that a user has logged out.

  2. SIGQUIT (3): Sent when the user types Ctrl+\. It causes the process to terminate and produce a core dump.

  3. SIGILL (4): Sent when a process attempts to execute an illegal instruction.

  4. SIGABRT (6): Sent by the abort function to indicate abnormal termination.

  5. SIGFPE (8): Sent when a process performs an erroneous arithmetic operation, such as division by zero.

  6. SIGKILL (9): Forces a process to terminate immediately. This signal cannot be caught or ignored.

  7. SIGSEGV (11): Sent when a process makes an invalid memory reference, causing a segmentation fault.

  8. SIGPIPE (13): Sent to a process when it attempts to write to a pipe that has no readers.

  9. SIGUSR1 (10) and SIGUSR2 (12): User-defined signals that can be used for custom purposes in applications.

  10. 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.

0 Comments

no data
Be the first to share your comment!