From owner-freebsd-questions Tue Feb 17 06:39:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA02015 for freebsd-questions-outgoing; Tue, 17 Feb 1998 06:39:25 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from iglou.com (exim@iglou2.iglou.com [192.107.41.17]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id GAA01962 for ; Tue, 17 Feb 1998 06:39:18 -0800 (PST) (envelope-from patrick@cre8tivegroup.com) Received: from gateway.cre8tivegroup.com [204.255.227.92] by iglou.com with esmtp (8.7.3/8.6.12) id 0y4oAo-0001w0-00; Tue, 17 Feb 1998 09:39:03 -0500 Message-ID: X-Mailer: XFMail 1.2 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <8767meqq20.fsf@phaedrus.uchicago.edu> Date: Tue, 17 Feb 1998 09:39:49 -0500 (EST) Organization: The Creative Group From: Patrick Gardella To: stephen farrell , questions@FreeBSD.ORG Subject: Re: shared memory Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG And wouldn't you know, those are the two programs I use often. Thanks for the tip. Patrick On 17-Feb-98 stephen farrell wrote: > Patrick Gardella writes: > >> That did it! Thanks. It was easier than I thought. Now do you know any >> way >> to determine what process is leaving the shared memory in place and not >> destroying it? > > Well, staroffice for linux is one of them... I think it happens a lot > under linux emulation (e.g., xquake). > > btw--a little shell fun like: > > for shmid in `ipcs | grep $USER | grep "^m" | awk '{print $2}'`; do > ipcrm -m $shmid > done > > might make this task a little easier. (note that "`" is not a "'") it > might be clever (and it might also be dangerous!--there is no > guarantee that you're NOT freeing some other program's shared memory) > to wrap your linux programs like: > >#!/bin/sh > run_linux_program > > for shmid in `ipcs | grep $USER | grep "^m" | awk '{print $2}'`; do > ipcrm -m $shmid > done ># EOF > > -- > > Steve Farrell To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message