Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!nrl-cmf!cmcl2!brl-adm!umd5!uvaarpa!mcnc!decvax!decwrl!hplabs!hpcea!hpfcdc!jsm From: jsm@hpfcdc.HP.COM (John Marvin) Newsgroups: comp.unix.wizards Subject: Re: Shared Memory in BSD4.3 is lacking? Message-ID: <5980019@hpfcdc.HP.COM> Date: 29 Feb 88 17:25:17 GMT References: <9100@ism780c.UUCP> Organization: HP Ft. Collins, Co. Lines: 11 > There should be a way to cause private shared memory segments > to vanish upon termination of a process or process group. There is a way. Just call shmctl() to remove the id immediately after calling shmat() to attach the private segment. This will cause the memory segment to vanish when the last process that has it attached exits. This also works for "public" shared memory, but it sort of defeats the purpose of it being "public". John Marvin jsm%hpfcla@hplabs.hp.com