TAYBENGH%NUSDISCS.BITNET@CUNYVM.CUNY.EDU (06/06/90)
Hi, Unix wizards! 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. - Beng Hang Tay (taybengh@nusdiscs) Dept. of Info. Sys. and Comp. Sc. National University of Singapore.
cpcahil@virtech.uucp (Conor P. Cahill) (06/07/90)
In article <23533@adm.BRL.MIL> TAYBENGH%NUSDISCS.BITNET@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