]> git.tuebingen.mpg.de Git - dss.git/blobdiff - snap.c
Kill children on fatal errors.
[dss.git] / snap.c
diff --git a/snap.c b/snap.c
index 71b7e30c5f9d248c4815d0c8d0e409eb6c41254e..aef0c51203a26b35233ed811f0fb498aa5ec5967 100644 (file)
--- a/snap.c
+++ b/snap.c
 #include <sys/time.h>
 
 #include "gcc-compat.h"
-#include "error.h"
+#include "err.h"
 #include "snap.h"
-#include "string.h"
-#include "time.h"
-#include "fd.h"
+#include "str.h"
+#include "tv.h"
+#include "file.h"
 
 /**
  * Wrapper for isdigit.
@@ -75,7 +75,6 @@ static int is_snapshot(const char *dirname, int64_t now, int unit_interval,
        if (num > now)
                return 0;
        s->creation_time = num;
-       //DSS_DEBUG_LOG("%s start time: %lli\n", dirname, (long long)s->creation_time);
        s->interval = (long long) ((now - s->creation_time)
                / unit_interval / 24 / 3600);
        if (!strcmp(dash + 1, "incomplete")) {