Close unlikely race: don't reset before export.
authorEmil Mikulic <emikulic@gmail.com>
Sun, 17 Jul 2011 05:06:42 +0000 (15:06 +1000)
committerEmil Mikulic <emikulic@gmail.com>
Sun, 11 Sep 2011 10:50:09 +0000 (20:50 +1000)
darkstat.c

index 75f5c2c..0f4b70d 100644 (file)
@@ -466,6 +466,8 @@ main(int argc, char **argv)
       }
 
       if (reset_pending) {
+         if (export_pending)
+            continue; /* export before reset */
          hosts_db_reset();
          graph_reset();
          reset_pending = 0;