Make it possible for a process to switch controlling terminals.

Via the TIOCSCTTY and TIOCNOTTY ioctls.
This commit is contained in:
Andreas Kling 2019-01-15 08:49:24 +01:00
commit 49b63281a0
Notes: sideshowbarker 2024-07-19 16:02:10 +09:00
6 changed files with 31 additions and 4 deletions

View file

@ -206,6 +206,7 @@ public:
static int reap(Process&) WARN_UNUSED_RESULT;
const TTY* tty() const { return m_tty; }
void set_tty(TTY* tty) { m_tty = tty; }
size_t regionCount() const { return m_regions.size(); }
const Vector<RetainPtr<Region>>& regions() const { return m_regions; }