diff options
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/FileSystem/ProcFS.cpp | 1 | ||||
-rw-r--r-- | Kernel/Process.h | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/Kernel/FileSystem/ProcFS.cpp b/Kernel/FileSystem/ProcFS.cpp index 3d281305c2..a81cbf575d 100644 --- a/Kernel/FileSystem/ProcFS.cpp +++ b/Kernel/FileSystem/ProcFS.cpp @@ -872,6 +872,7 @@ static OwnPtr<KBuffer> procfs$all(InodeIdentifier) process_object.add("ppid", process.ppid().value()); process_object.add("nfds", process.number_of_open_file_descriptors()); 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("amount_virtual", process.amount_virtual()); process_object.add("amount_resident", process.amount_resident()); diff --git a/Kernel/Process.h b/Kernel/Process.h index aebd5dc3f8..879b8db96c 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -391,10 +391,8 @@ public: u32 m_ticks_in_kernel_for_dead_children { 0 }; Custody& current_directory(); - Custody* executable() - { - return m_executable.ptr(); - } + Custody* executable() { return m_executable.ptr(); } + const Custody* executable() const { return m_executable.ptr(); } int number_of_open_file_descriptors() const; int max_open_file_descriptors() const |