SIGPOLL

SIGPOLL

Infobox Computing signal
description = Pollable event (Sys V); synonym of SIGIO
action = Abnormal termination of the process
POLL_IN | Data input available
POLL_OUT | Output buffers available
POLL_MSG | Input message available
POLL_ERR | I/O error
POLL_PRI | High priority input available
POLL_HUP | Device disconnected
On POSIX-compliant platforms, SIGPOLL is the signal thrown by computer programs when asynchronous I/O event occurs. The symbolic constant for SIGPOLL is defined in the header file signal.h. Symbolic signal names are used because signal numbers can vary across platforms.

On Linux, SIGIO is a synonym for SIGPOLL.

Etymology

"SIG" is a common prefix for signal names. "POLL" refers to polling, in the context of the poll system call. "IO" stands for input/output.

Usage

As specified by POSIX, when the I_SETSIG operation is performed on a file descriptor with the ioctl system call, the kernel is instructed to signal the calling process when a "pollable event" (i.e. one which would interrupt the poll system call) occurs on the file descriptor; for example when input or output becomes possible. The signal sent may be user-specified, but defaults to SIGPOLL. By employing this mechanism, the user may accomplish true asynchronous I/O without the conceptual overhead of a multiplexing select loop. A possible disadvantage is that the technique lends itself to producing spaghetti code, with race conditions a danger.

From POSIX 1003.1 (2003), it is preferred to use the standardised system calls for asynchronous I/O defined in aio.h. These allow requests to be queued for asynchronous execution; return and error status can be retrieved with the aio_return and aio_error functions, respectively.


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • SIGPOLL — Описание: Сигнал асинхронного ввода вывода По умолчанию: завершение процесса коды SA SIGINFO POLL IN доступен ввод POLL OUT возможен вывод POLL MSG доступно новое сообщение POLL ERR ошибка ввода вывода POLL PRI высокоприоритетный ввод POLL… …   Википедия

  • Signal (computing) — A signal is a limited form of inter process communication used in Unix, Unix like, and other POSIX compliant operating systems. Essentially it is an asynchronous notification sent to a process in order to notify it of an event that occurred. When …   Wikipedia

  • SIGQUIT — Ein Signal ist eine Systemnachricht an einen laufenden Prozess. Signale sind eine primitive Form von Interprozesskommunikation. Die meisten Signale bewirken auch eine Aktion – meist das Beenden des Prozesses. Andere hingegen dienen lediglich der… …   Deutsch Wikipedia

  • SIGTSTP — Ein Signal ist eine Systemnachricht an einen laufenden Prozess. Signale sind eine primitive Form von Interprozesskommunikation. Die meisten Signale bewirken auch eine Aktion – meist das Beenden des Prozesses. Andere hingegen dienen lediglich der… …   Deutsch Wikipedia

  • Signal (Computer) — Ein Signal ist eine Systemnachricht an einen laufenden Prozess. Signale sind eine primitive Form von Interprozesskommunikation. Die meisten Signale bewirken auch eine Aktion – meist das Beenden des Prozesses. Andere hingegen dienen lediglich der… …   Deutsch Wikipedia

  • Kill (Unix) — En informatique, kill est une commande de certains systèmes d exploitation (particulièrement Unix et ses dérivés) utilisée pour demander l arrêt d un processus en cours d exécution. Sommaire 1 Implémentations 2 Exemples 3 Voir aus …   Wikipédia en Français

  • SIGALRM — Au sein des plateformes répondant aux normes POSIX, SIGALRM est le signal envoyé à un processus lorsqu une limite de temps est écoulée. La constante symbolique du pré processeur C pour SIGALRM est définie dans le fichier d en tête signal.h. Les… …   Wikipédia en Français

  • SIGINT (POSIX) —  Pour l’article homonyme, voir SIGINT.  SIGINT est, au sein des plateformes répondant aux normes POSIX, le signal envoyé à un processus afin de provoquer son interruption. La constante symbolique du pré processeur C pour SIGINT est… …   Wikipédia en Français

  • SIGKILL — Au sein des plateformes répondant aux normes POSIX, SIGKILL est le signal envoyé à un processus afin de provoquer sa fin immédiate. La constante symbolique du pré processeur C pour SIGKILL est définie dans le fichier d en tête signal.h. Les noms… …   Wikipédia en Français

  • SIGTERM — Au sein des plateformes répondant aux normes POSIX, SIGTERM est le signal envoyé à un processus afin de provoquer sa fin. La constante symbolique du pré processeur C pour SIGTERM est définie dans le fichier d en tête signal.h, en général lui même …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”