CC-4322: Prevent pypo-notify from hanging if server becomes unresponsive

-fixed
This commit is contained in:
Martin Konecny 2012-08-30 15:56:34 -04:00
parent a56af856b8
commit 796885594f
1 changed files with 2 additions and 1 deletions

View File

@ -10,4 +10,5 @@ SCRIPT=`readlink -f $0`
# Absolute path this script is in
SCRIPTPATH=`dirname $SCRIPT`
cd ${SCRIPTPATH}/../ && python pyponotify.py "$@"
cd ${SCRIPTPATH}/../
timeout 15 python pyponotify.py "$@"