diff clear_ipc @ 0:223b71206888

Initial import
author thib
date Fri, 01 Aug 2008 16:32:45 +0000 (2008-08-01)
parents
children
line wrap: on
line diff
new file mode 100755
--- /dev/null
+++ b/clear_ipc
@@ -0,0 +1,8 @@
+#!/bin/sh
+# IPC ��message queue��shared memory ���ĤäƤ��ޤäƤ���
+# ���ˡ�����������õ�뤿��Υ�����ץ�
+
+killall -KILL test xlovesys xclannad
+ipcs | grep '^q' | awk '{print $2;}' | perl -ne 'chomp; system "ipcrm -q $_";'
+ipcs | grep '^m' | awk '{print $2;}' | perl -ne 'chomp; system "ipcrm -m $_";'
+ipcs | grep '^s' | awk '{print $2;}' | perl -ne 'chomp; system "ipcrm -s $_";'