SIGTTOU

SIGTTOU

Infobox Computing signal
description = Tty output for background process
action = Suspends the process
On POSIX-compliant platforms, SIGTTOU is the signal thrown by computer programs that attempt to write to the tty while in the background. The symbolic constant for SIGTTOU is 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. "TT" stands for "tty", an abbreviation for "teletypewriter", an archaic type of computer terminal. "OU" refers to output.

Usage

SIGTTOU may be sent to a background process that attempts to write to its controlling terminal. In practical terms this controlling terminal is usually an interactive terminal session at which the user initiated the background job.

The default action of SIGTTOU is to stop the process. Background processes thus suspended can be placed into the foreground to accept input by the shell using the "fg" command or by sending them the SIGCONT signal.

The SIGTTOU signal provides an alternative to this reliance on human interaction. On receiving the SIGTTOU, for instance, an appropriately coded program may opt to perform a default action rather than waiting for a human user to foreground it and receive the output on the terminal.

In practice shells often override the default Stop action so that background jobs deliver their output to the controlling terminal by default.

ee also

* SIGTTIN - a corresponding signal sent to a process that tries to read from its controlling terminal.


Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Look at other dictionaries:

  • SIGTTOU — Описание: Вывод на терминал фоновой задачей По умолчанию: приостановить выполнение процесса коды SA SIGINFO (не имеет специфических кодов) В POSIX системах, SIGTTOU  сигнал посылаемый фоновой задаче, при попытке вывода на управляющий… …   Википедия

  • SIGTTOU — Signal eines Hintergrundprozess bei Ausgabevorhaben unter X/Open und BSD UNIX ( >xedit /usr/include/signal.h) …   Acronyms

  • SIGTTOU — Signal eines Hintergrundprozess bei Ausgabevorhaben unter X/Open und BSD UNIX ( >xedit /usr/include/signal.h) …   Acronyms von A bis Z

  • TTY-абстракция — Стиль этой статьи неэнциклопедичен или нарушает нормы русского языка. Статью следует исправить согласно стилистическим правилам Википедии. У этого термина существуют и другие значения, см. Tty. Подсистема TTY, или TTY абстракция  это одна из …   Википедия

  • SIGCONT — Описание: Сигнал возобновления выполнения ранее остановленного процесса По умолчанию: возобновить выполнение; игнорируется если процесс не остановлен коды SA SIGINFO (не имеет специфических кодов) В POSIX системах, SIGCONT  сигнал,… …   Википедия

  • POSIX terminal interface — The POSIX terminal interface is the generalized abstraction, comprising both an Application Programming Interface for programs, and a set of behavioural expectations for users of a terminal, as defined by the POSIX standard and the Single Unix… …   Wikipedia

  • 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

  • SIGTTIN — Infobox Computing signal description = Tty input for background process action = Suspends the processOn POSIX compliant platforms, SIGTTIN is the signal thrown by computer programs that attempt to read from the tty while in the background. The… …   Wikipedia

  • Process group — In POSIX conformant operating systems, a process group denotes a collection of one or more processes. Process groups are used to control the distribution of signals. A signal directed to a process group is delivered individually to all of the… …   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

Share the article and excerpts

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