From owner-cvs-all@FreeBSD.ORG Tue Dec 25 00:52:25 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F49316A417; Tue, 25 Dec 2007 00:52:25 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 9290913C442; Tue, 25 Dec 2007 00:52:25 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lBP0qPGe071808; Tue, 25 Dec 2007 00:52:25 GMT (envelope-from edwin@repoman.freebsd.org) Received: (from edwin@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lBP0qPhr071807; Tue, 25 Dec 2007 00:52:25 GMT (envelope-from edwin) Message-Id: <200712250052.lBP0qPhr071807@repoman.freebsd.org> From: Edwin Groothuis Date: Tue, 25 Dec 2007 00:52:25 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.bin/ipcs Makefile ipc.c ipc.h ipcs.c src/usr.bin/ipcrm Makefile ipcrm.1 ipcrm.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Dec 2007 00:52:25 -0000 edwin 2007-12-25 00:52:25 UTC FreeBSD src repository Modified files: usr.bin/ipcs Makefile ipcs.c usr.bin/ipcrm Makefile ipcrm.1 ipcrm.c Added files: usr.bin/ipcs ipc.c ipc.h Log: Add the ability to clean up all shared memory segments which are unused in one go. From the original PR: I've observed that linux apps running under the linuxulator have a habit of leaving behind shared memory segments which are unused, but which eventually cause the system to run out of free segments and these apps will stop working. ipcrm(1) currently only allows removal of unused message queues, shared memory segments and semaphores on an individual basis, or those having a matching (non-zero) key. However it would often be convenient to just do a complete cleanup of everything, usually as root. PR: bin/118292 Submitted by: Callum Gibson Not reviewed by: grog@ Approved by: grog@ Revision Changes Path 1.7 +5 -0 src/usr.bin/ipcrm/Makefile 1.15 +36 -1 src/usr.bin/ipcrm/ipcrm.1 1.13 +133 -18 src/usr.bin/ipcrm/ipcrm.c 1.8 +1 -0 src/usr.bin/ipcs/Makefile 1.1 +207 -0 src/usr.bin/ipcs/ipc.c (new) 1.1 +71 -0 src/usr.bin/ipcs/ipc.h (new) 1.31 +17 -197 src/usr.bin/ipcs/ipcs.c