creator of shared memory crash, will the shared memory lost too??
Conor P. Cahill
cpcahil at virtech.uucp
Thu Jun 7 06:39:24 AEST 1990
In article <23533 at adm.BRL.MIL> TAYBENGH%NUSDISCS.BITNET at CUNYVM.CUNY.EDU writes:
> I am trying to use shared memory provided in Unix System V for
>IPC between processes. Due to reliability reason, I would like to know
>the data in a shared memory can be used if the creator of shared memory
>crashed. Could somebody out there please highlight me. Thanks in advance.
Yes. Shared memory will remain vali following the termination of the
creating processes (even if it terminates abnormally) UNLESS you have called
shmctl() with IPC_RMID - which doesn't remove the segment until the access
count drops to zero.
--
Conor P. Cahill (703)430-9247 Virtual Technologies, Inc.,
uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160
Sterling, VA 22170
More information about the Comp.unix.questions
mailing list