annotate clear_ipc @ 74:f8751d74918b
default tip
Remove “duplicate” functions as they can be remplaced by a nearly-identical existing function.
author |
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
date |
Sat, 02 Apr 2011 19:13:54 +0200 |
parents |
223b71206888 |
children |
|
rev |
line source |
0
|
1 #!/bin/sh
|
|
2 # IPC message queueshared memory ĤäƤޤäƤ
|
|
3 # ˡõ뤿Υץ
|
|
4
|
|
5 killall -KILL test xlovesys xclannad
|
|
6 ipcs | grep '^q' | awk '{print $2;}' | perl -ne 'chomp; system "ipcrm -q $_";'
|
|
7 ipcs | grep '^m' | awk '{print $2;}' | perl -ne 'chomp; system "ipcrm -m $_";'
|
|
8 ipcs | grep '^s' | awk '{print $2;}' | perl -ne 'chomp; system "ipcrm -s $_";'
|