I need to write a program using POSIX shared memory between 2 processes that are NOT spawned by a fork or exec. The only example I have uses IPC_ALLOC, but that is not defined in Fedora Core 2's implementation of POSIX's shmget. Can anyone point me to a good example for Linux doing this?
I am not asking for anyone to do my assignment; I'm not even giving the details of the assignment. I would just like to know how to tell process A (which stores world) that the memory allocated by shmget will be allocated by process B (which stores hello and then prints the contents when more has been added).
This question is similar to this question, which never got an answer:
http://www.linuxquestions.org/questi...ight=IPC_ALLOC
Thanks!
- JJJ