SIGURG

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 sent to a process 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.

Etymology

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

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.)