SIGTTIN

SIGTTIN

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

Usage

SIGTTIN may be sent to a background process that attempts to read from 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 SIGTTIN 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 SIGTTIN signal provides an alternative to this reliance on human interaction. On receiving the SIGTTIN, for instance, an appropriately coded program may opt to perform a default action rather than waiting for a human user to foreground it and respond.

Typically this signal applies to processes under job control; daemons do not have controlling terminals and should never receive this signal.

ee also

* SIGTTOU - a corresponding signal received if a background process tries to write to its controlling terminal.


Wikimedia Foundation. 2010.

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

Look at other dictionaries:

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

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

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

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

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

  • 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

  • SIGTTOU — Infobox Computing signal description = Tty output for background process action = Suspends the processOn POSIX compliant platforms, SIGTTOU is the signal thrown by computer programs that attempt to write to 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

  • Fread — is a function that reads buffered binary input from a file. It is included from the stdio.h header file in the standard C library.:size t fread (void * restrict ptr, size t size, size t nmemb, FILE * restrict stream)The fread function copies… …   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”