205

Signal Handling
Standard Signals

  • There are a number of standard signals you may catch which originate from the UNIX operating system signal mechanism

  • For a complete list look at "/usr/include/sys/signal.h" on a UNIX host

      Signal Number Desription
      HUP 1 hangup
      INT 2 interrupt (rubout)
      QUIT 3 quit (ASCII FS)
      ILL 4 illegal instruction (not reset when caught)
      TRAP 5 trace trap (not reset when caught)
      ABRT 6 used by abort
      EMT 7 EMT instruction
      FPE 8 floating point exception
      KILL 9 kill (cannot be caught or ignored)
      BUS 10 bus error
      SEGV 11 segmentation violation
      SYS 12 bad argument to system call
      PIPE 13 write on a pipe with no one to read it
      ALRM 14 alarm clock
      TERM 15 software termination signal from kill
      USR1 16 user defined signal 1