mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-09 00:22:36 +02:00
Fix busted display of tty names in /proc/summary.
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 18:35:29 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/d980ddc7458
@@ -3,6 +3,7 @@
|
||||
#include <VirtualFileSystem/VirtualFileSystem.h>
|
||||
#include "system.h"
|
||||
#include "MemoryManager.h"
|
||||
#include "StdLib.h"
|
||||
|
||||
static ProcFileSystem* s_the;
|
||||
|
||||
@@ -210,7 +211,7 @@ ByteBuffer procfs$summary()
|
||||
task->parentPID(),
|
||||
task->timesScheduled(),
|
||||
task->fileHandleCount(),
|
||||
task->tty() ? task->tty()->ttyName().characters() : "n/a",
|
||||
task->tty() ? strrchr(task->tty()->ttyName().characters(), '/') + 1 : "n/a",
|
||||
task->name().characters());
|
||||
}
|
||||
*ptr = '\0';
|
||||
|
||||
Reference in New Issue
Block a user