Fork, exec, and child inheritance oh my
Fork, exec, and child inheritance oh my
- Subject: Fork, exec, and child inheritance oh my
- From: "Dave Keck" <email@hidden>
- Date: Sun, 1 Jul 2007 18:07:01 -0400
Hello,
I'm attempting to create a program in which a child process will load
certain components into the parent's address space, so that the parent
is able to access the symbols that the child loaded. Like a
plugin-loader, but with one caveat: due to the architecture of our
program, the child must be a separate process.
Right now I've been walking the dark alleys of fork(), execv(), and
mmap(), but I'm not seeing much light. It seems what we need is a
version of execv() that wouldn't completely overwrite the parent
process, so that the parent and child would share the same address
space and both able to access the symbols loaded by the child process.
Is this possible?
Thanks!
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden