mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
Kernel: Don't copy a Vector<FileDescriptionAndFlags>
Instead of copying a Vector everytime we need to enumerate a Process' file descriptions, we can just temporarily lock so it won't change.
This commit is contained in:
parent
12b6e69150
commit
7c87891c06
28 changed files with 198 additions and 128 deletions
|
@ -18,7 +18,7 @@ KResultOr<FlatPtr> Process::sys$sysconf(int name)
|
|||
case _SC_NPROCESSORS_ONLN:
|
||||
return Processor::processor_count();
|
||||
case _SC_OPEN_MAX:
|
||||
return max_open_file_descriptors();
|
||||
return fds().max_open();
|
||||
case _SC_PAGESIZE:
|
||||
return PAGE_SIZE;
|
||||
case _SC_TTY_NAME_MAX:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue