mutouyun / cpp-ipc

C++ IPC Library: A high-performance inter-process communication using shared memory on Linux/Windows.
Other
1.8k stars 341 forks source link

SHmem files danging #104

Open marriusco opened 1 year ago

marriusco commented 1 year ago

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

` IPC_SHM____AC_CONNmyq IPC_SHM____CA_CONN IPC_SHM____QU_CONN6416myq IPCSHMwaiter_cond_CC_CONNmyq IPCSHMwaiter_cond_RD_CONNmyq IPCSHMwaiter_cond_WT_CONNmyq IPCSHMwaiter_lock_CC_CONNmyq IPCSHMwaiter_lock_RD_CONNmyq IPCSHMwaiter_lock_WT_CONNmyq

IPCSHMwaiter_lock_RD_CONNocean IPCSHMwaiter_lock_WT_CONNocean `

mutouyun commented 1 year ago

What is your use case like?

shenfumin commented 4 months ago

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