On Wed, Mar 01, 2000 at 07:58:34AM -0800, Alfred Perlstein wrote:
> > It'd be nice if we had a utility that could clean out and reclaim the
> > shared memory in 1 swoop. Then we'd be able to shut down XFree86 (and
> > obviously any other apps using shared memory), and get on with life :)
> >
> > (anyone listening?)
>
> er, yes this is entirely possible.
>
> If you want to clear SHM then use 'ipcs' to list and 'ipcrm' to delete.
>
> I used to have a shell script to do this, but i don't know where it
> went.
Hi, I dont' know if this meet what you described, but I use a single line
to clean un-referenced shared memory.
x.sh:
#!/bin/sh
ipcs | awk '{if ($5 == ENVIRON["USER"]) system("ipcrm -m" $2)}'
Before applying 3 options posted by ade lovett into my kernel,
most heavy gtk programs like xmms, gimp, gnome-controlcenter...etc,
will die with whole X crashing. (I invoke X with gnome-session, what the
gnome document said) Thus I have to run x.sh whenever my X crashed with
share memory bodiz *shurg* /.\
--
CirX - This site doesnt' exist.
9c k9o h9 s1bg s1f, 7v .y xqx a sj m8r ffg1 vg5 a6 asox tmul h38.
ant sj m8r ob ? 1fj mwby a1 tao vg5. soq df v' .a. CirX.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message