delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/27/00:57:41

From: PAULO_MAXIMILIANO_VASQUEZ_BRICHETTI DOT REPSOL AT email DOT ypf DOT com DOT ar
X-Lotus-FromDomain: YPF_SA
To: djgpp AT delorie DOT com
Message-ID: <032569A4.0020953F.00@email.ypf.com.ar>
Date: Mon, 27 Nov 2000 02:57:07 -0300
Subject: IPC
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com


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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019