Fork, exec, and child inheritance oh my
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=OzV9UZu6YPi7QFj/a1bQjHr9nvKQDvCS71+5aBV6mjejIMX5oqQb+Dl1R7u2Nl39vLNzUvsUqRuL6XcJwTgCki5ci4P7H7cTdf5MUZ7uxmr96jw9cqz8YfKCqyzhkmyi2ee0sRC4YdM4pP7zsEhp/TZ6v4gIhBcQ73JO2dzShu4= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=F76r9IFj7tOJoCpOujmuMtYvw80EuLWUnY2vXWpDOktMXBsu2wO6rMAN7QFviXAb3kyBnnS9Mc6sQ0Wluo9ui6AdBCAdsK+umA/p2ZzdJJ7RHBnn/tAMala59nxxjJGlQazcfd/IGOslkUeVVuv2uYoXGY1jcB7Xmp+xf/rNiYY= 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Dave Keck