Comment 3 for bug 1099783

Revision history for this message
Yan Zhang (yan.zhang) wrote :

maybe we could set a timeout to avoid infinite loop

```
    timeout=200 # 40 secs.
    until check_pid_and_port $RSYNC_PID $RSYNC_PORT
    do
        sleep 0.2
        timeout=$((timeout-1))
        if [ $timeout == 0 ]
        then
            wsrep_log_error "rsync daemon may fails already."
            exit 255 # unknown error. maybe port has been taken
        fi
    done
```