mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:45:08 +00:00
Kernel: Do not open stdio fds for kernel processes
Kernel processes just do not need them. This also avoids touching the file (sub)system early in the boot process when initializing the colonel process.
This commit is contained in:
parent
6466c3d750
commit
544b8286da
1 changed files with 1 additions and 1 deletions
|
@ -1283,7 +1283,7 @@ Process::Process(Thread*& first_thread, const String& name, uid_t uid, gid_t gid
|
|||
#endif
|
||||
m_fds[i] = fork_parent->m_fds[i];
|
||||
}
|
||||
} else {
|
||||
} else if (ring == Ring3) {
|
||||
m_fds.resize(m_max_open_file_descriptors);
|
||||
auto& device_to_use_as_tty = tty ? (CharacterDevice&)*tty : NullDevice::the();
|
||||
m_fds[0].set(*device_to_use_as_tty.open(O_RDONLY).value());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue