shmget: Invalid argument error

对着背影说爱祢 提交于 2020-02-13 15:27:36

EINVAL A new segment was to be created and size < SHMMIN or 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.

  

ipcs -m 查看共享内存

ipcs -p 查看共享内存的所有进程ID

ipcrm -m shmid 删除共享内存ID

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!