mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-28 18:44:24 +00:00
Kernel: Pass new region owner to Region::clone
This commit is contained in:
@@ -88,7 +88,7 @@ pid_t Process::sys$fork(RegisterState& regs)
|
||||
#ifdef FORK_DEBUG
|
||||
dbg() << "fork: cloning Region{" << ®ion << "} '" << region.name() << "' @ " << region.vaddr();
|
||||
#endif
|
||||
auto region_clone = region.clone();
|
||||
auto region_clone = region.clone(*child);
|
||||
if (!region_clone) {
|
||||
dbg() << "fork: Cannot clone region, insufficient memory";
|
||||
// TODO: tear down new process?
|
||||
|
||||
Reference in New Issue
Block a user