1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:27:43 +00:00

TTY: Change the MasterPTY device major to not conflict with /dev/psaux

The 1st master pseudoterminal had the same device ID as /dev/psaux
which was caught by an assertion in Device VFS registration.

This would cause us to overwrite the PS/2 mouse device registration
which was definitely not good.
This commit is contained in:
Andreas Kling 2019-12-09 20:43:29 +01:00
parent dfd0daa157
commit be459acaea
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@
//#define MASTERPTY_DEBUG
MasterPTY::MasterPTY(unsigned index)
: CharacterDevice(10, index)
: CharacterDevice(100, index)
, m_slave(adopt(*new SlavePTY(*this, index)))
, m_index(index)
{