On Wed, 2 Jul 2014, David Matthews wrote:
Thanks for suggesting this. I was hoping someone might be able to suggest something. However, looking a bit more closely, I can see a problem. shmget uses a "key" which has to be derived from an existing file via ftok. That looks as though it would require a file to be created in the file system for each process. It could be zero size but I think it leads to the problem you've identified.
'Advanced Programming in the Unix Environment' by R. Stevens discusses the pros and cons of IPC with and without 'ftok'. Would be far too complicated to talk about this here.
Regards, Michael