In POSIX systems , SIGURG is a signal sent to a process when urgent (readily available) data appears on a socket.
| Description: | Urgent data on a socket |
|---|---|
| Default: | ignored |
| SA_SIGINFO codes | |
| (does not have specific codes) | |
SIGURG is an integer constant defined in the signal.h header file. The symbolic names of the signals are used instead of numbers, since in different implementations the signal numbers may vary.
Etymology
SIG - general signal prefix (from English signal ), URG - shortened spelling of English. urgent - urgent.
Usage
SIGURG is sent when receiving data on an urgent channel ( English out-of-band data ) to a socket with enabled asynchronous input-output (flag F_SETOWN system call fcntl Linux and BSD ). The data itself can be read using the recv system call.