Huw Davies (@huw) commented about server/registry.c:
unsigned int flags; /* flags */ timeout_t modif; /* last modification time */ struct list notify_list; /* list of notifications */
- FILE *file; /* loaded file */
Rather than keeping the file open, it probably makes more sense to store the filename and reopen it when you need to save it.