1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:17:35 +00:00

Kernel: Don't dump perfcore for non-dumpable processes

Fixes #4904
This commit is contained in:
Andreas Kling 2021-01-11 18:53:45 +01:00
parent cf3d2411fa
commit 5c73c1bff8
2 changed files with 36 additions and 30 deletions

View file

@ -527,6 +527,8 @@ private:
void kill_threads_except_self();
void kill_all_threads();
bool dump_core();
bool dump_perfcore();
int do_exec(NonnullRefPtr<FileDescription> main_program_description, Vector<String> arguments, Vector<String> environment, RefPtr<FileDescription> interpreter_description, Thread*& new_main_thread, u32& prev_flags, const Elf32_Ehdr& main_program_header);
ssize_t do_write(FileDescription&, const UserOrKernelBuffer&, size_t);