Monday, December 3, 2007

Linux Signals

Signal

Description

Default Action

SIGABRT

Generated by the abort system call (POSIX)

Process terminates and dumps core

SIGALRM


A timer signal generated by the alarm system call (POSIX)

Process terminates

SIGBUS

Process attempted to use mis-or

unaligned memory (4.2 BSD)

Process terminates and dumps core.

SIGCHLD


A child has stopped or terminated (POSIX)

Ignore

SIGCONT

Process continues if it is stopped

(POSIX)

Continue (ignore if process is not

stopped)

SIGEMT


Bus (hardware) error

Process terminates and dumps core

SIGFPE


Floating-point exception (POSIX)

Process terminates and dumps core

SIGHUP

Process received a hang-up on its controlling terminal or its controlling process died

Process terminates

SIGILL


Illegal instruction (POSIX)

Process terminates and dumps core

SIGINFO


The same as SIGPWR

Ignore

SIGINT


User generated a keyboard interrupt (POSIX)

Process terminates

SIGIO


Asynchronous I/O received (4.2 BSD)

Ignore

SIGIOT


I/O trap. Same as SIGABRT (4.2 BSD)

Process terminates and dumps core

SIGKILL

Kill (POSIX)

Process terminates, cannot catch or ignore

SIGLOST

Process lost a file lock

Process terminates

SIGPIPE

Process attempted to write to a pipe with no readers (POSIX)

Process terminates

SIGPOLL


Pollable event occured (System V)

Process terminates

SIGPROF


Profiling alarm clock set on a segment of code expired (4.2 BSD)

Process terminates

SIGPWR

System detected a power failure (System V)

Ignore




SIGQUIT


User generated a keyboard quit (POSIX)

Process terminates and dumps core

SIGSEGV

Process attempted to reference inaccessible memory (POSIX)

Process terminates and dumps core

SIGSTKFLT

Process generated a stack fault ("blew the stack")

Process terminates

SIGSTOP

Stop signal (POSIX)

Stop, cannot catch or ignore

SIGSYS


Bad argument to routine

Process terminates and dumps core

SIGTERM

Process received a termination signal (POSIX)

Process terminates

SIGTRAP

Process hit a trace or breakpoint trap (usually during debugging) (POSIX)

Process terminates and dumps core

SIGTSTP

User generated a stop from the keyboard (POSIX)

Stop

SIGTTIN


Process attempted to read from stdin while running in the background (POSIX)

Stop

SIGTTOU


Process attempted to write Stop to stdout while running in the background (POSIX)


SIGUNUSED

Unused signal

Process terminates

SIGURG


Urgent condition on socket (4.2 BSD)

Ignore

SIGUSR1

User-defined signal 1 (POSIX)

Process terminates

SIGUSR2


User-defined signal 2 (POSIX)

Process terminates

SIGVTALRM

Interval alarm clock expired (4.2 BSD)

Process terminates

SIGWINCH

The size of a terminal window changed (4.3 BSD, Sun)

Ignore

SIGXCPU

Process exceeded the amount of CPU time it can use (4.2 BSD)

Process terminates and dumps core

SIGXFSZ


Process tried to access or manipulate a file larger than the syste file size limit (4.2 BSD)

Process terminates and dumps core


bits/signum.h

No comments: