1

Error 22 while doing shmget

view story
linux-howto

http://serverfault.com – As far as I understand errno 22 in case of shmget is becasue A shared memory segment is to be created and the value of size is less than the system-imposed minimum or greater than the system-imposed maximum. But something which I dont understand is I am calling shmget in my server twice first time with key_id as IPC_PRIVATE and size as 64K and second time as key_id as some random number let say 200 and size as 64K and it always fails. I tried reducing the size of second instance and behaviour which I am seeing is something which I am not able to understand For key_id greater than 250 the s (HowTos)