Skip to main content

Questions tagged [controlling-terminal]

The "controlling terminal" is an attribute of a process that identifies the terminal device that affects it with regards to "job control". It typically affects processes that run inside a terminal or open a terminal device.

2 votes
1 answer
368 views

If I make the bash as the first process invoked (i.e as init), as a result it will display the following: init: cannot set terminal process group (-1): Inappropriate ioctl for device init: no job ...
Li-Guangda's user avatar
3 votes
0 answers
615 views

When I login on a Fedora 31 workstation and run the ps command, I see the below output; for an X session: PID TT CMD ... 1 ? /usr/lib/systemd/systemd --switched-root --system --deserialize ...
detic's user avatar
  • 33
1 vote
2 answers
332 views

In a process session with a controlling terminal, if the controlling process closes the file descriptor of the controlling terminal, does the process session become detached from the controlling ...
Tim's user avatar
  • 107k
9 votes
2 answers
3k views

On Lubuntu 18.04, I run a shell in lxterminal. Its controlling terminal is the current pseudoterminal slave: $ tty /dev/pts/2 I would like to know what relations are between my current controlling ...
Tim's user avatar
  • 107k
-3 votes
1 answer
466 views

From The Linux Programming Interface In an interactive shell, these three file descriptors 0, 1 and 2 normally refer to the terminal under which the shell is running. Does "the terminal ...
Tim's user avatar
  • 107k
2 votes
0 answers
70 views

I can kill processes and send signals to them with kill, so I don't need controlling terminal (or ctty) for that. So.. is the purpose of controlling terminal is solely for reacting to nudges from user?...
anatoly techtonik's user avatar
3 votes
1 answer
3k views

Am I right that all input typed from the keyboard goes through a controlling terminal? That means that if a program is run without a controlling terminal, it won't be able to receive any user input. ...
anatoly techtonik's user avatar
16 votes
2 answers
7k views

How can one get the real name of the controlling terminal (if there is one, else an error) as a pathname? By "real name", I mean not /dev/tty, which cannot be used by other arbitrary processes to ...
vinc17's user avatar
  • 12.5k

15 30 50 per page