From owner-freebsd-current Wed Mar 1 11:28:25 2000 Delivered-To: freebsd-current@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 7FA0E37C330 for ; Wed, 1 Mar 2000 11:28:16 -0800 (PST) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.3) with ESMTP id LAA05994; Wed, 1 Mar 2000 11:28:13 -0800 (PST) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.3/8.9.1) id LAA75785; Wed, 1 Mar 2000 11:28:13 -0800 (PST) (envelope-from jdp@polstra.com) Date: Wed, 1 Mar 2000 11:28:13 -0800 (PST) Message-Id: <200003011928.LAA75785@vashon.polstra.com> To: chris@netmonger.net Subject: Re: Shared memory - Was: 2 Queries In-Reply-To: <20000301124613.A15018@netmonger.net> References: <20000229021327.E21720@fw.wintelcom.net> <20000229134143.B4903@netmonger.net> <20000301182028.C61034@plab.ku.dk> <20000301124613.A15018@netmonger.net> Organization: Polstra & Co., Seattle, WA Cc: current@freebsd.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <20000301124613.A15018@netmonger.net>, Christopher Masto wrote: > On Wed, Mar 01, 2000 at 06:20:28PM +0100, Anton Berezin wrote: > > I would say that the programs you've mentioned are badly written then. > > > > It takes no more than > > > > XSync(disp,False); > > shmctl( shmid, IPC_RMID, 0); > > It takes no more than a well-designed operating system service to > ensure that badly written programs don't fail to release resources > when they crash. We didn't design that particular service. That's why it's called System V shared memory. Also, it's persistent for legitimate design reasons, just like files are. Applications need to clean up after themselves. The OS has no way of knowing whether an application wants its shared memory segments to survive after it terminates. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message