mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
Kernel: Add an InterruptFlagSaver helper class.
This is useful instead of InterruptDisabler in some cases.
This commit is contained in:
parent
cd1bbdf052
commit
b782055b96
Notes:
sideshowbarker
2024-07-19 15:51:41 +09:00
Author: https://github.com/awesomekling
Commit: b782055b96
5 changed files with 28 additions and 18 deletions
|
@ -2181,10 +2181,10 @@ int Process::sys$chmod(const char* pathname, mode_t mode)
|
|||
|
||||
void Process::die()
|
||||
{
|
||||
destroy_all_windows();
|
||||
set_state(Dead);
|
||||
m_fds.clear();
|
||||
m_tty = nullptr;
|
||||
destroy_all_windows();
|
||||
|
||||
InterruptDisabler disabler;
|
||||
if (auto* parent_process = Process::from_pid(m_ppid)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue