Shmget: Invalid argument. Why I get this error?

Up vote 1 down vote favorite share g+ share fb share tw.

I get a "shmget: Invalid argument error" while I try to execute this part of code int *nFS, *spb, *cell1, shmid; key_t key = 5768; //i need a shared memory segment in which I can put 3 ints if ((shmid = shmget(key, (sizeof(int) * 3), IPC_CREAT | 0666)) C memory pointers error-message shared link|improve this question edited Dec 8 '11 at 10:38 asked Dec 8 '11 at 10:27Sicioldr346 100% accept rate.

Someone who has a problem like yours cboard – Mansuro Dec 8 '11 at 10:36 You're asking for too little! – sidyll Dec 8 '11 at 10:39.

From the shmget(1) man page: EINVAL A new segment was to be created and size SHMMAX, or no new segment was to be created, a segment with given key existed, but size is greater than the size of that segment. You should check whether you still have an segment for this key using ipcs and remove it with ipcrm.

– Sicioldr Dec 8 '11 at 10:43 Anyway i'm going to read the ipcs and ipcrm man page – Sicioldr Dec 8 '11 at 10:43.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions