~ salmonella-environment-setup (master) /scripts/linux/hunt-async-io-tests.sh
Trap1#! /bin/sh23pid=`ps aux | grep '[s]almonella-run-publish/chicken/bin/csi -script run.scm' | grep -v dev/null | awk '{print $2}'`45if [ -n "$pid" ]; then6 if readlink /proc/$pid/cwd | grep async-io/tests; then7 test_start=`stat -c "%Y" /proc/$pid`8 now=`date +%s`9 if [ `expr $now - $test_start` -gt 300 ]; then10 kill $pid >/dev/null 2>&111 fi12 fi13fi