UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

#1 2002-09-14 11:23 AM

liliarg
Member
From: Dalian ,CHINA
Registered: 2002-08-15
Posts: 6

Re: see shared memory with ipcs

when i look about shared memory with ipcs -m , i am showed:

IPC status from <running system> as of Sat Sep 14 18:21:50 CST 2002
T         ID      KEY        MODE        OWNER    GROUP
Shared Memory:
m          0   0x50000a1e --rw-r--r--     root     root
m        301   0x41000fcb --rw-rw-rw-     root    other
m        202   0x41000373 --rw-rw-rw-     root    other
m        103   0x41000378 --rw-rw-rw-     root    other
m          4   0x41000377 --rw-rw-rw-     root    other

i can tell the second to the fifth list, they are created by our program, but what about the first one?   why the owner and group is "root   root "  , while others are "root other"?

in fact , the ID 0 is not always 0, it is changed from a non-zero number. but we also don't know why it will be like this  and who create it : OS ?

Offline

#2 2002-09-30 05:50 PM

mlampkin
Administrator
From: Sol 3
Registered: 2002-06-12
Posts: 911
Website

Re: see shared memory with ipcs

Some systems do use some IPC mechanisms in the kernel for communication between core components...  also most windowing systems (gnome, kde and so forth) also use shared segments in some fashion... so the guess is that is what you are seeing...

Michael


"The only difference between me and a madman is that I'm not mad."

Salvador Dali (1904-1989)

Offline

Board footer

Powered by FluxBB