Mark Hahn wrote:
>
> > /proc/#/maps file of a process, which has a shared memory segment attached,
> > prints the segment as "(deleted)" while in fact the segment is fine and sound.
> > This seems to be quite confusing.
>
> perhaps to some. on the other hand, it is deleted - a file that has no
> entry in any FS namespace. what would you suggest as an alternative?
>
> > cat /proc/#/maps:
> > 40018000-40022000 rw-s 00000000 00:05 5865476 /SYSV01315549 (deleted)
I would suggest to state such kind of mapping quite straightforward - as IPC shmem
(not as generic FS-like notation, which might be useful, but like I said, still
looks confusing), and to provide "(deleted)" only if the segment was actually
removed (from SYSV IPC point of view).