SIGURG

From Wikipedia, the free encyclopedia

SIGURG
Description: Urgent condition on socket (4.2BSD)
Default action: Ignore the signal
SA_SIGINFO macros
None

On POSIX-compliant platforms, SIGURG is the signal thrown by computer programs when a socket has urgent data available to read. In source code, SIGURG is a symbolic constant defined in the header file signal.h. Symbolic signal names are used because signal numbers can vary across platforms.

[edit] Etymology

SIG is a common prefix for signal names. URG is an abbreviation for urgent.

[edit] Usage

The SIGURG signal is sent to a process employing the asynchronous I/O capabilities offered by the F_SETOWN argument to the fcntl system call on Linux and BSD when out-of-band data is available on a file descriptor connected to a socket. (Such out-of-band data can be read with the recv system call.)


POSIX Signals
SIGABRT | SIGALRM | SIGFPE | SIGHUP | SIGILL | SIGINT | SIGKILL | SIGPIPE | SIGQUIT | SIGSEGV | SIGTERM | SIGUSR1 | SIGUSR2 | SIGCHLD | SIGCONT | SIGSTOP | SIGTSTP | SIGTTIN | SIGTTOU | SIGBUS | SIGPOLL | SIGPROF | SIGSYS | SIGTRAP | SIGURG | SIGVTALRM | SIGXCPU | SIGXFSZ | Realtime Signals are user definable—SIGRTMIN+n through SIGRTMAX.
Common non-POSIX signals and synonyms
SIGIOT | SIGEMT | SIGSTKFLT | SIGIO | SIGCLD | SIGINFO | SIGPWR (SIGINFO) | SIGLOST | SIGWINCH | SIGUNUSED