From owner-freebsd-hackers Wed Feb 4 00:50:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA14719 for hackers-outgoing; Wed, 4 Feb 1998 00:50:19 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from citadel.cdsec.com (citadel.cdsec.com [192.96.22.18]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA14714 for ; Wed, 4 Feb 1998 00:50:14 -0800 (PST) (envelope-from gram@cdsec.com) Received: (from nobody@localhost) by citadel.cdsec.com (8.8.5/8.6.9) id KAA27818; Wed, 4 Feb 1998 10:55:32 +0200 (SAT) Received: by citadel via recvmail id 27780; Wed Feb 4 10:54:40 1998 From: Graham Wheeler Message-Id: <199802040854.KAA11487@cdsec.com> Subject: Re: Shared memory and signals To: Michael.Schuster@utimaco.co.at (Michael Schuster) Date: Wed, 4 Feb 1998 10:54:32 +0200 (SAT) Cc: hackers@FreeBSD.ORG In-Reply-To: <34D8136F.CF845A68@utimaco.co.at> from "Michael Schuster" at Feb 4, 98 08:06:23 am X-Mailer: ELM [version 2.4 PL25-h4.1] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe hackers" > > Graham Wheeler wrote: > > >I notice from looking at the kernel source > >that it appears as if an exit() effectively does a shmdt for each shared > >memory segment, but not a shmctl(IPC_RMID,..). > You probably wouldn't want to do that, since shmctl(IPC_RMID,..) really > removes the shm segment, and other processes trying to use it wouldn't > be very happy about that ... If the shmctl is done from the SIGCHLD handler, I know that there are no other processes still using the segment (as the only other process using the segment was the one that terminated and caused the SIGCHLD signal...) -- Dr Graham Wheeler E-mail: gram@cdsec.com Citadel Data Security Phone: +27(21)23-6065/6/7 Internet/Intranet Network Specialists Mobile: +27(83)-253-9864 Firewalls/Virtual Private Networks Fax: +27(21)24-3656 Data Security Products WWW: http://www.cdsec.com/