mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
Kernel: Handle ProcessGroup allocation failures better
- Rename create* => try_create* - Don't null out existing process group on allocation failure
This commit is contained in:
parent
28d6c3a136
commit
ac85fdeb1c
Notes:
sideshowbarker
2024-07-18 04:44:49 +09:00
Author: https://github.com/awesomekling
Commit: ac85fdeb1c
3 changed files with 13 additions and 8 deletions
|
@ -24,8 +24,8 @@ class ProcessGroup
|
|||
public:
|
||||
~ProcessGroup();
|
||||
|
||||
static RefPtr<ProcessGroup> create(ProcessGroupID);
|
||||
static RefPtr<ProcessGroup> find_or_create(ProcessGroupID);
|
||||
static RefPtr<ProcessGroup> try_create(ProcessGroupID);
|
||||
static RefPtr<ProcessGroup> try_find_or_create(ProcessGroupID);
|
||||
static RefPtr<ProcessGroup> from_pgid(ProcessGroupID);
|
||||
|
||||
const ProcessGroupID& pgid() const { return m_pgid; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue