1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-02 22:02:12 +00:00

Kernel: Make sys$setsid() clear the calling process's controlling TTY

This commit is contained in:
Andreas Kling 2020-01-25 14:53:48 +01:00
parent cf10f22488
commit 81ddd2dae0

View file

@ -2386,6 +2386,7 @@ pid_t Process::sys$setsid()
return -EPERM;
m_sid = m_pid;
m_pgid = m_pid;
m_tty = nullptr;
return m_sid;
}