From 6d0ae262f561a1e7559154c8e122ae9ca9c71590 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 8 May 2013 15:12:13 +0200 Subject: [PATCH] Force fsync() after writing statefile --- utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/utils.c b/utils.c index 5ba5d9e..fc8c201 100644 --- a/utils.c +++ b/utils.c @@ -602,6 +602,7 @@ fw3_write_statefile(void *state) uci_unload(s->uci, p); } + fsync(fileno(sf)); fclose(sf); } } -- 2.25.1