mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:07:34 +00:00
Kernel: Make CoreDump::m_num_program_headers const
This makes it an error to assign to it after construction.
This commit is contained in:
parent
ff8bf4db8d
commit
28c042e46f
2 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ private:
|
||||||
|
|
||||||
Process& m_process;
|
Process& m_process;
|
||||||
NonnullRefPtr<FileDescription> m_fd;
|
NonnullRefPtr<FileDescription> m_fd;
|
||||||
size_t m_num_program_headers;
|
const size_t m_num_program_headers;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,7 +60,7 @@ int Process::sys$profiling_disable(pid_t pid)
|
||||||
// We explicitly unlock here because we can't hold the lock when writing the coredump VFS
|
// We explicitly unlock here because we can't hold the lock when writing the coredump VFS
|
||||||
lock.unlock();
|
lock.unlock();
|
||||||
|
|
||||||
auto coredump = CoreDump::create(*process, String::formatted("/tmp/profiler_coredumps/%d", pid));
|
auto coredump = CoreDump::create(*process, String::formatted("/tmp/profiler_coredumps/{}", pid));
|
||||||
coredump->write();
|
coredump->write();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue