mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-12 18:08:15 +02:00
Fix some issues uncovered by the spawn stress test.
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 16:06:57 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/3f3535213b8
@@ -189,7 +189,8 @@ void ProcFS::remove_process(Process& process)
|
||||
InterruptDisabler disabler;
|
||||
auto pid = process.pid();
|
||||
auto it = m_pid2inode.find(pid);
|
||||
ASSERT(it != m_pid2inode.end());
|
||||
if (it == m_pid2inode.end())
|
||||
return;
|
||||
bool success = remove_file((*it).value);
|
||||
ASSERT(success);
|
||||
m_pid2inode.remove(pid);
|
||||
|
||||
Reference in New Issue
Block a user