Translate

Tuesday 12 August 2014

AIX signals

Have you ever wondered what the kill signals do, well simply enter: kill -l for a list:

# kill -l
 1) HUP   14) ALRM     27) MSG       40) bad trap  53) bad trap
 2) INT   15) TERM     28) WINCH     41) bad trap  54) bad trap
 3) QUIT  16) URG      29) PWR       42) bad trap  55) bad trap
 4) ILL   17) STOP     30) USR1      43) bad trap  56) bad trap
 5) TRAP  18) TSTP     31) USR2      44) bad trap  57) bad trap
 6) LOST  19) CONT     32) PROF      45) bad trap  58) bad trap
 7) EMT   20) CHLD     33) DANGER    46) bad trap  59) bad trap
 8) FPE   21) TTIN     34) VTALRM    47) bad trap  60) GRANT
 9) KILL  22) TTOU     35) MIGRATE   48) bad trap  61) RETRACT
10) BUS   23) IO       36) PRE       49) bad trap  62) SOUND
11) SEGV  24) XCPU     37) bad trap  50) bad trap  63) SAK
12) SYS   25) XFSZ     38) bad trap  51) bad trap
13) PIPE  26) bad trap 39) bad trap  52) bad trap


AIX also has a killall command that any user can run to kill all of his or her processes. The syntax is:

# killall <-Signal>

To list all the signal actions defined for process 11928, enter:
 # procsig <Process>

HUP         caught
INT         caught
QUIT        caught
ILL         caught
TRAP        caught
ABRT        caught
EMT         caught
FPE         caught
KILL        default  RESTART
BUS         caught

..
..

To see the current working directory for a process:

# procwdx 88473628847362:        /home/root/



To display the current stack of process 11928, enter:

# procstack 11928
8847362: -ksh
0xd022da40  waitpid(??, ??, ??) + 0x1c0
0x1000945c  job_wait(??) + 0xfc
0x10029ef0  xec_switch(??, ??, ??, ??, ??) + 0x4d0
0x1002ba70  sh_exec(??, ??, ??) + 0x3f0
0x100016f8  exfile() + 0x498
0x100008ac  main(??, ??) + 0x58c
0x10000168  __start() + 0x68
 

No comments:

Post a Comment