Date: Tue, 17 Feb 1998 09:39:49 -0500 (EST) From: Patrick Gardella <patrick@cre8tivegroup.com> To: stephen farrell <stephen@farrell.org>, questions@FreeBSD.ORG Subject: Re: shared memory Message-ID: <XFMail.980217093949.patrick@cre8tivegroup.com> In-Reply-To: <8767meqq20.fsf@phaedrus.uchicago.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <patrick@cre8tivegroup.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.980217093949.patrick>
