From 38241adb35761475ac010eca4ac1141f3fee79a8 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 6 Nov 2008 10:32:01 +0100 Subject: [PATCH] Prevent busy loops on rsync exit code 13. We restart the rsync process in case it returned with exit code 13 which unfortunately happens for some unknown reasons even with a valid configuration. This may lead to a busy loop, so wait at least one minute before restarting rsync. --- dss.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dss.c b/dss.c index 86e8382..af02f1c 100644 --- a/dss.c +++ b/dss.c @@ -502,6 +502,8 @@ static int handle_rsync_exit(int status) DSS_WARNING_LOG("rsync process %d returned %d -- restarting\n", (int)rsync_pid, es); snapshot_creation_status = SCS_RSYNC_NEEDS_RESTART; + gettimeofday(&next_snapshot_time, NULL); + next_snapshot_time.tv_sec += 60; ret = 1; goto out; } -- 2.39.2