From: Razvan Deaconescu Date: Sun, 22 Aug 2010 09:05:12 +0000 (+0300) Subject: exit on "Segmentation fault" when detecting hrk client X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=984b411d59a7eb3fdbfc050a22e2cf278e060aab;p=p2p-testing-infrastructure.git exit on "Segmentation fault" when detecting hrk client --- diff --git a/ControlScripts/clients/hrk/detect_complete_hrk.sh b/ControlScripts/clients/hrk/detect_complete_hrk.sh index 93dfaa7..2e20293 100755 --- a/ControlScripts/clients/hrk/detect_complete_hrk.sh +++ b/ControlScripts/clients/hrk/detect_complete_hrk.sh @@ -32,6 +32,11 @@ while true; do exit 0 fi + if cat $LOG_FILE | grep "Segmentation fault" &> /dev/null; then + echo "Segmentation fault when transferring torrent" + exit 0 + fi + # check stat client is alive if ! pgrep "hrktorrent" &> /dev/null; then if ! pgrep -f "schedule_client.sh" &> /dev/null; then