mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +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
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