Operating System - HP-UX
1748180 Members
4218 Online
108759 Solutions
New Discussion

Re: ipcs -m output question

 
SOLVED
Go to solution
Gordon_10
Occasional Contributor

ipcs -m output question

We have several systems here and I notice on most of them shared memory segments have key values that are non-zero. There are several however that have a key value of 0x00000000 and I cannot attach to them with a shmget call. Are these zero key value segments marked as IPC_PRIVATE and so new connections cannot be made to them or is there some other significance to the 0x00000000 key value?
Strike while the iron is hot.
1 REPLY 1
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: ipcs -m output question

That is exactly what that means. It is intended to be used by a process and its descendent processes but this is not an absolute requirement as it can be created with whatever permissions are desired so that other processes with proper permissions can be allowed to access the shmid.

Man shmget for details.
If it ain't broke, I can fix that.