cpp-ipc icon indicating copy to clipboard operation
cpp-ipc copied to clipboard

SHmem files danging

Open marriusco opened this issue 2 years ago • 2 comments

After closing the applications using ICP the /dev/shm has all the files SHMEM there.

` __IPC_SHM____AC_CONN__myq IPC_SHM____CA_CONN __IPC_SHM____QU_CONN__64__16__myq __IPC_SHM___waiter_cond___CC_CONN__myq __IPC_SHM___waiter_cond___RD_CONN__myq __IPC_SHM___waiter_cond___WT_CONN__myq __IPC_SHM___waiter_lock___CC_CONN__myq __IPC_SHM___waiter_lock___RD_CONN__myq __IPC_SHM___waiter_lock___WT_CONN__myq

__IPC_SHM___waiter_lock___RD_CONN__ocean __IPC_SHM___waiter_lock___WT_CONN__ocean `

marriusco avatar Aug 23 '23 16:08 marriusco

What is your use case like?

mutouyun avatar Sep 04 '23 02:09 mutouyun

我遇到过你这个问题。主要是应用程序退出的时候没有析构你自己创建出来的ipc sender或者ipc reader。比如你将ipc sender定义为全局变量的时候。程序突然退出。那么这些文件是会存在在哪里的。

shenfumin avatar Jul 21 '24 06:07 shenfumin