mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
Fix some issues uncovered by the spawn stress test.
This commit is contained in:
@@ -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