]> git.tuebingen.mpg.de Git - dss.git/blobdiff - dss.c
Don't busy-loop if pre-create hook returns non-zero.
[dss.git] / dss.c
diff --git a/dss.c b/dss.c
index b9afbc4a8505d1886420d1355bd742dbdd73c756..d2afc10d59d266e0db54cdae04c283feca68c306 100644 (file)
--- a/dss.c
+++ b/dss.c
@@ -718,6 +718,8 @@ static int handle_pre_create_hook_exit(int status)
                        DSS_NOTICE_LOG("deferring snapshot creation...\n");
                        warn_count = 60; /* warn only once per hour */
                }
+               gettimeofday(&next_snapshot_time, NULL);
+               next_snapshot_time.tv_sec += 60;
                snapshot_creation_status = HS_READY;
                ret = 0;
                goto out;