File: sqlr-ipclean

package info (click to toggle)
sqlrelay 1%3A0.37.1-3.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 13,084 kB
  • ctags: 6,691
  • sloc: cpp: 48,136; python: 10,118; ansic: 9,673; java: 9,195; php: 8,839; perl: 8,827; sh: 8,554; ruby: 8,516; tcl: 5,039; makefile: 3,665
file content (10 lines) | stat: -rw-r--r-- 248 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
ADMIN=sqlrelay

DIRTY=`ipcs | grep $ADMIN | wc -l`
if test $DIRTY -ne 0 ; then
   ipcrm sem `ipcs -s | grep $ADMIN | cut -f2 -d ' '`
   ipcrm shm `ipcs -m | grep $ADMIN | cut -f2 -d ' '`
   echo "Interprocess buffers cleaned";
fi;
exit 0