Fixed: flock: timeout cannot be zero

develop
Kolan Sh 2012-09-29 16:19:44 +04:00
parent 115c5151f1
commit 906db09e41
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ FIFO_FILE=/tmp/.snail.fifo
[ ! -f $LOCK_FILE ] && echo "Snail daemon is not running. Please start it." && exit -1
{
flock -w 0 -s 9
flock -w 1 -s 9
if [ 0 -ne $? ]; then
(nohup echo -n > $FIFO_FILE &>/dev/null)&
flock -w $TIMEOUT -s 9