diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-10-31 22:47:19 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-02 11:34:31 +0100 |
commit | 9f6eabd73a76daa0da5521770a28e648523961a7 (patch) | |
tree | a2a4e78cb51e5b4a6c41e8abc08c8ee1b5371e13 /Kernel/GlobalProcessExposed.cpp | |
parent | 71f05c70b4e1b442ed3bcce712b5dcfb266da996 (diff) | |
download | serenity-9f6eabd73a76daa0da5521770a28e648523961a7.zip |
Kernel: Move TTY subsystem to use KString instead of `AK::String`
This is minor progress on removing the `AK::String` API from the Kernel
in the interest of improving OOM safety.
Diffstat (limited to 'Kernel/GlobalProcessExposed.cpp')
-rw-r--r-- | Kernel/GlobalProcessExposed.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/GlobalProcessExposed.cpp b/Kernel/GlobalProcessExposed.cpp index 8d158a0b69..d17d96c2f9 100644 --- a/Kernel/GlobalProcessExposed.cpp +++ b/Kernel/GlobalProcessExposed.cpp @@ -497,7 +497,7 @@ private: process_object.add("nfds", process.fds().open_count()); process_object.add("name", process.name()); process_object.add("executable", process.executable() ? process.executable()->absolute_path() : ""); - process_object.add("tty", process.tty() ? process.tty()->tty_name() : "notty"); + process_object.add("tty", process.tty() ? process.tty()->tty_name().view() : "notty"sv); process_object.add("amount_virtual", process.address_space().amount_virtual()); process_object.add("amount_resident", process.address_space().amount_resident()); process_object.add("amount_dirty_private", process.address_space().amount_dirty_private()); |