Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Jeremy Schneider September 29, 2011
file 25 lines (23 sloc) 0.473 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#!/bin/bash
#
# To install, add this line to rc.local:
# nohup nice -n -20 ./fix_cssd.sh 2>&1 &
#
while true
do
for CHECK in [o]cssd [c]ssdmonitor [c]ssdagent; do
PROC=$(ps ax|grep $CHECK)
    if [[ -n "$PROC" ]]
    then
if [[ -n "$(echo $PROC|awk '{print$3}'|grep L)" ]]
      then
OPID=$(echo $PROC|awk '{print$1}')
        gdb -p $OPID <<" EOF"
          call munlockall()
          quit
        EOF
      fi
fi
done
sleep 60
done

Something went wrong with that request. Please try again.