mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-01 16:58:52 +00:00
Start working on sessions and process groups.
This commit is contained in:
parent
05565bad58
commit
d8f0dd6f3b
Notes:
sideshowbarker
2024-07-19 18:34:30 +09:00
Author: https://github.com/awesomekling
Commit: d8f0dd6f3b
8 changed files with 157 additions and 2 deletions
|
@ -277,10 +277,12 @@ ByteBuffer procfs$summary()
|
|||
auto processes = Process::allProcesses();
|
||||
auto buffer = ByteBuffer::createUninitialized(processes.size() * 256);
|
||||
char* ptr = (char*)buffer.pointer();
|
||||
ptr += ksprintf(ptr, "PID OWNER STATE PPID NSCHED FDS TTY NAME\n");
|
||||
ptr += ksprintf(ptr, "PID PGP SID OWNER STATE PPID NSCHED FDS TTY NAME\n");
|
||||
for (auto* process : processes) {
|
||||
ptr += ksprintf(ptr, "% 5u % 4u % 8s % 5u % 10u % 3u % 4s %s\n",
|
||||
ptr += ksprintf(ptr, "% 3u % 3u % 3u % 4u % 8s % 3u % 9u % 3u % 4s %s\n",
|
||||
process->pid(),
|
||||
process->pgid(),
|
||||
process->sid(),
|
||||
process->uid(),
|
||||
toString(process->state()),
|
||||
process->parentPID(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue