exit() seems to work, but needs more testing.

- Added cleaner allocation of shm addresses by moving the allocation to do_mmap().
- Added deletion routine for all objects: shadow, vm_file of type vfs_file, shm_file, etc.
  - Need to make sure objects get deleted properly after exit().
- Currently we allow a single, unique virtual address for each shm segment.
This commit is contained in:
Bahadir Balban
2008-10-21 14:17:58 +03:00
parent aa2be891cd
commit b20fda9341
11 changed files with 166 additions and 67 deletions

View File

@@ -293,7 +293,7 @@ int task_mmap_regions(struct tcb *task, struct vm_file *file)
}
/* Task's utcb */
task->utcb = utcb_vaddr_new();
task->utcb = utcb_new_address();
/* Create a shared memory segment available for shmat() */
if (IS_ERR(shm = shm_new((key_t)task->utcb, __pfn(DEFAULT_UTCB_SIZE))))