mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 22:30:31 +00:00
Fix some issues uncovered by the spawn stress test.
This commit is contained in:
parent
f6179ad9f9
commit
3f3535213b
Notes:
sideshowbarker
2024-07-19 16:06:57 +09:00
Author: https://github.com/awesomekling
Commit: 3f3535213b
5 changed files with 9 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue