In an EXEC call, I am looking to allow bigger "child process" by making memory through deleting Parent processes's memory.
I am using MINIX 3.2 and am planning to modify exec.c
to call a modified version of alloc_new_mem
in alloc.c
Here is the source code for alloc.c - https://github.com/minix3/minix/blob/master/servers/vm/alloc.c
Looking for pointers.
OS: MINIX3 File: alloc.c
In the parent process you can simply return without waiting for the child process, so child process will be reparented to init and parent address space will be freed. This doesnt involve any hacks in the kernel.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.