Table of Contents Previous Slide Next Slide

Software Development in the UNIX Environment
UNIX Signals

    Name         Value   Default   Event
    __________________________________________________________________________
    SIGHUP       1       Exit      Hangup [see termio(7)]
    SIGINT       2       Exit      Interrupt [see termio(7)]
    SIGQUIT      3       Core      Quit [see termio(7)]
    SIGILL       4       Core      Illegal Instruction
    SIGTRAP      5       Core      Trace/Breakpoint Trap
    SIGABRT      6       Core      Abort
    SIGEMT       7       Core      Emulation Trap
    SIGFPE       8       Core      Arithmetic Exception
    SIGKILL      9       Exit      Killed
    SIGBUS       10      Core      Bus Error
    SIGSEGV      11      Core      Segmentation Fault
    SIGSYS       12      Core      Bad System Call
    SIGPIPE      13      Exit      Broken Pipe
    SIGALRM      14      Exit      Alarm Clock
    SIGTERM      15      Exit      Terminated

Send a signal and kill a process

   user   pid  pgrp   %cpu proc  pri  size   rss    time  command        
 robertd  5456  5676  96.39    2    8 18557  2556  115:06  l502.exe
 robertd  5441  5565  85.65    1    8 18557  2557  114:10  l502.exe
  zctang  6035  1989  74.86    0    1  7722  6458   73:18  adf
  zctang  2037  1988  69.37    *    1  7998  7086  173:42  adf
  zctang  1768  1742  49.63    *    1  7998  6622  183:35  adf
 gleibon 15057 15057  12.87    *    8 59513 32708  592:12  MathKernel
     sas  9658  9658   0.62    3   20   112    74    0:00  top
    root  8140   303   0.16    *   20   107    66    0:01  telnetd
  zctang  8750  8750   0.16    *   20   111    71    0:00  telnet
 gleibon  1736  1736   0.12    *   20   675   546    0:15  Mathematica
 gleibon  9250  9250   0.08    *   20   967   490    0:03  MathKernel
    root   824   824   0.07    *   20   171    82   29:22  mediad
 gleibon  8654  8654   0.07    *    8  1067   654   18:07  MathKernel
dmitriip  6784  6784   0.06    *   20  2445  1127    1:23  matlab
    root   911   911   0.04    *   20   314   103    0:07  xdm
    root   116     0   0.03    *   20    95    56    0:11  syslogd
    root   936   936   0.03    *   20  1553  1445   99:31  dsmc  
    root  9641   655   0.02    *   20   172    97    0:00  sshd.1.2.20
 

kill -8 pid - kill the process and make it dump core