1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:57:45 +00:00

Kernel: Increase maximum PTY count from 8 to 64

Let's allow users to allocate more pseudo-terminals if they want.
This commit is contained in:
Andreas Kling 2021-08-07 15:08:32 +02:00
parent c4604bc080
commit 7f2791f02e
2 changed files with 3 additions and 2 deletions

View file

@ -44,7 +44,9 @@ private:
virtual StringView class_name() const override { return "PTYMultiplexer"; }
Mutex m_lock { "PTYMultiplexer" };
Vector<unsigned> m_freelist;
static constexpr size_t max_pty_pairs = 64;
Vector<unsigned, max_pty_pairs> m_freelist;
};
}