Mail Archives: djgpp/2000/11/27/00:57:41
Hy!
I'm writing some code for a concurrent server, and i need to communicate beetwen
process.
I have a master process that accept the conections, keep a table with the slave
socket interface and generate a process (with the function fork). The table kept
is dynamicaly generated to be shared with all new process created.
The problem i have found, is that the new process created inherit the shared
memory at the moment its born but i can't attach to that new process a memory
shared after the time it was created.
I'm using the functions shmget(), and shmat().
I'm tryind to do that using the same Key value for that function when allocating
memory and when trying to attach another process to share that memory.
Thanks for your attention and sorry by my english.
Maximiliano Vasquez
- Raw text -