Re: Help! Shared memory is getting deleted after process is killed



After killing my process, when I do ipcs, I am unable to see the shared
memory created. Also, I am getting the errno as ENOENT, which means
that it has created it since key does not exist.(#define ENOENT 2
/* No such file or directory */)

Thanks,
Anu.

Nils O. Selåsdal wrote:

Anuradha wrote:
Hi!

I have a requirement wherein the shared memory *should not be*
destroyed after the process is killed. Though I am not doing any clean
Well, sysv shm isn't removed until you do so, wether the process
that created it still exists or not.

up, the sharedmemory is getting cleared. Can anyone of you let me know
why this is happening.

How do you determin it is gone ?

.



Relevant Pages

  • Re: Help! Shared memory is getting deleted after process is killed
    ... memory created. ... Also, I am getting the errno as ENOENT, which means ... shmId = shmget; ...
    (comp.os.linux.development.apps)
  • Re: IPC_PRIVATE Shared memory
    ... >>> I'm writing a server app which uses SysV IPC shared memory. ... but the memory isn't listed by the ipcs program. ... >> memory objects regardless of permissions. ...
    (comp.os.linux.development.apps)
  • Re: system calls
    ... Error found!: Cannot allocate memory ... As I said in my reply to Keith, you should only print errno if ... The c program seems to keep the memory locked up until it exits ... you can release it by calling free() before ...
    (comp.unix.shell)
  • Can oracle run without shared memory ? [ pmap + ipcs ]
    ... I'm trying to find the memory size of some oracle instance. ... With aix i do this with svmon + ipcs. ... Some shared memory is shown, but none for the oracle user! ...
    (comp.unix.solaris)
  • Re: Handling read() errors
    ... what errno values correspond to these cases? ... the what kind of object you're reading from - if you're ... doesn't have enough memory you may get ENOBUFS or ENOMEM. ...
    (comp.unix.programmer)