Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 May 1998 09:37:03 -0700
From:      Jaspal Kohli <jaspal@best.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   leaking shm segments
Message-ID:  <3559CC2E.2BAEE281@best.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3559CC2E.2BAEE281>