I am trying to allocate a new segment of memory for the child process by way
of the controlling parent process under the ptrace environment. The
underlying premise is that I do not want to change the child's source code
(assume source code is not available).
The following peudo code should give an idea of what I want to do.
/* child */
exec() /* execute the real child */
/* parent */
create memory in child's process and write to it.
If I can changed the child's source, I can do a shmget() and shmctl().Quote:}
However, the child's source code is not available.
Can someone help?