how do i change the shm_open path?

后端 未结 2 346
粉色の甜心
粉色の甜心 2021-01-14 16:22

i am currently developing an application on ubunto and calling shm_open, currently the default path is within /var/run/shm. however i need to change this to /tmp. simply try

2条回答
  •  北海茫月
    2021-01-14 16:52

    You need to mount a tmpfs filesystem in /tmp for this:

    mihai@keldon:~$ mount | grep shm
    shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
    

    Otherwise, it is not possible.

提交回复
热议问题