Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Problem with shared memory
@ 1999-07-22  4:00 Burkhard Schultheis
  1999-07-26  4:00 ` Burkhard Schultheis
  0 siblings, 1 reply; 2+ messages in thread
From: Burkhard Schultheis @ 1999-07-22  4:00 UTC (permalink / raw)


We have ported our software from AIX to DEC UNIX and have no a big
problem with shared memory.
One process creates the shared memory and writes to and reads from it.
Other processes only read from the shared memory. Sometimes the writing
process must throw away the shared memory and must get a new one with
other size. It removes the memory with the call
err = shmctl (shmid, IPC_RMID, NULL);
err is 0 after this call, but the shared memory segment still does
exist, only the key ist set to 0! Under AIX I can resize the shared
memory and have no problems with it. What can I do instead? Is it
possible to resize shared memory as with AIX?
Thank you in advance!
-- 
Burkhard Schultheis
Tele Data Electronic
Wagnerstr. 10
D-76448 Durmersheim



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem with shared memory
  1999-07-22  4:00 Problem with shared memory Burkhard Schultheis
@ 1999-07-26  4:00 ` Burkhard Schultheis
  0 siblings, 0 replies; 2+ messages in thread
From: Burkhard Schultheis @ 1999-07-26  4:00 UTC (permalink / raw)


I've found it by myself. I have to detach the shared memory first. Then
it is OK!

Burkhard Schultheis schrieb:
> 
> We have ported our software from AIX to DEC UNIX and have no a big
> problem with shared memory.
> One process creates the shared memory and writes to and reads from it.
> Other processes only read from the shared memory. Sometimes the writing
> process must throw away the shared memory and must get a new one with
> other size. It removes the memory with the call
> err = shmctl (shmid, IPC_RMID, NULL);
> err is 0 after this call, but the shared memory segment still does
> exist, only the key ist set to 0! Under AIX I can resize the shared
> memory and have no problems with it. What can I do instead? Is it
> possible to resize shared memory as with AIX?
> Thank you in advance!
> --
> Burkhard Schultheis
> Tele Data Electronic
> Wagnerstr. 10
> D-76448 Durmersheim



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-07-26  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-07-22  4:00 Problem with shared memory Burkhard Schultheis
1999-07-26  4:00 ` Burkhard Schultheis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox