From owner-freebsd-questions Wed May 13 09:42:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA27557 for freebsd-questions-outgoing; Wed, 13 May 1998 09:42:15 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from proxy4.ba.best.com (root@proxy4.ba.best.com [206.184.139.15]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA27548 for ; Wed, 13 May 1998 09:42:09 -0700 (PDT) (envelope-from jaspal@best.com) Received: from best.com (dynamic48.pm07.mv.best.com [209.24.241.176] (may be forged)) by proxy4.ba.best.com (8.8.8/8.8.BEST) with ESMTP id JAA23273 for ; Wed, 13 May 1998 09:40:18 -0700 (PDT) Message-ID: <3559CC2E.2BAEE281@best.com> Date: Wed, 13 May 1998 09:37:03 -0700 From: Jaspal Kohli X-Mailer: Mozilla 4.04 [en] (Win95; I) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: leaking shm segments Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG If a process creates a shared memory segment using shmget() and exits without deleting it via shmctl(), the segment does not get deleted. Since this is a limited resource in the kernel, the system will run out of shm segments. It was not clear to me from the man pages whether this is the expected behavior or whether this is a kernel bug (i.e. shm segments should be deleted when the creating process exits). Any suggestions? thanks, - Jaspal To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message