handle another out-of-memory in fork(). the policy here is not consistent,
since other calls (e.g. exec()) panic on out of memory.
This commit is contained in:
parent
bc51626aab
commit
8dc71a257d
3 changed files with 10 additions and 3 deletions
|
|
@ -161,6 +161,8 @@ proc_pagetable(struct proc *p)
|
|||
|
||||
// An empty page table.
|
||||
pagetable = uvmcreate();
|
||||
if(pagetable == 0)
|
||||
return 0;
|
||||
|
||||
// map the trampoline code (for system call return)
|
||||
// at the highest user virtual address.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue