Subject: Re: SysV SHM never removed
To: Julian Coleman <J.D.Coleman@newcastle.ac.uk>
From: Thilo Manske <Thilo.Manske@HEH.Uni-Oldenburg.DE>
List: current-users
Date: 02/12/2000 17:23:35
On Sat, Feb 12, 2000 at 04:04:31PM +0000, Julian Coleman wrote:
> I've turned the game netmaze into a package.  It uses shmget().
> Unfortunately, I can only run it so many times before I get the error :
> 
>   shmget: Cannot allocate memory
> 
> The only way to clear this is to reboot.
Workaround (instead of reboot):

You can try ipcs(1) & ipcrm(1) to manually remove shared memory segments,
e.g.
ipcs -m|grep ^m|awk '{ print $2 }'|xargs -n 1 ipcrm -m
-- 
Dies ist Thilos Unix Signature! Viel Spass damit.