mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 02:55:49 +03:00
SystemServer: Create /dev/tty as a character device instead of a symlink
The new device has major number 5, minor number 0, and is represented by the SelfTTYDevice class in the Kernel.
This commit is contained in:
parent
12867d60ad
commit
e508073168
Notes:
sideshowbarker
2024-07-17 16:53:18 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/e508073168 Pull-request: https://github.com/SerenityOS/serenity/pull/12550 Reviewed-by: https://github.com/BertalanD Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/kleinesfilmroellchen
@ -315,6 +315,10 @@ static void populate_devtmpfs_devices_based_on_devctl()
|
||||
create_devtmpfs_char_device("/dev/ptmx", 0666, 5, 2);
|
||||
break;
|
||||
}
|
||||
case 0: {
|
||||
create_devtmpfs_char_device("/dev/tty", 0666, 5, 0);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
warnln("Unknown character device {}:{}", major_number, minor_number);
|
||||
}
|
||||
@ -393,7 +397,6 @@ static ErrorOr<void> prepare_synthetic_filesystems()
|
||||
TRY(Core::System::symlink("/proc/self/fd/0", "/dev/stdin"));
|
||||
TRY(Core::System::symlink("/proc/self/fd/1", "/dev/stdout"));
|
||||
TRY(Core::System::symlink("/proc/self/fd/2", "/dev/stderr"));
|
||||
TRY(Core::System::symlink("/proc/self/tty", "/dev/tty"));
|
||||
|
||||
populate_devtmpfs();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user