1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-03-14 03:39:49 +00:00
This commit is contained in:
skywind3000
2020-03-17 02:35:21 +08:00
parent 4c34e29e08
commit a1498c8672

View File

@@ -258,6 +258,7 @@ void data_write(const char *filename, ib_array *items)
fprintf(fp, "%s|%u|%u\n",
item->path->ptr, item->rank, item->timestamp);
}
fflush(fp);
flock(fd, LOCK_UN);
fclose(fp);
}