summaryrefslogtreecommitdiff
path: root/Kernel/Process.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-15 08:49:24 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-15 08:49:24 +0100
commit49b63281a09b61ab608f51a771f124f14c1ee1ad (patch)
tree8f1c25b694358286492d2c97dcd8417631f9aa42 /Kernel/Process.h
parent10308c6434dcc37e2135f36f4e6d263d5cf9b8df (diff)
downloadserenity-49b63281a09b61ab608f51a771f124f14c1ee1ad.zip
Make it possible for a process to switch controlling terminals.
Via the TIOCSCTTY and TIOCNOTTY ioctls.
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r--Kernel/Process.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h
index 85ae1c6bda..c696244fb7 100644
--- a/Kernel/Process.h
+++ b/Kernel/Process.h
@@ -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; }