]> mj.ucw.cz Git - libucw.git/blobdiff - lib/mainloop.c
Minor cleanup of KMP:
[libucw.git] / lib / mainloop.c
index c218a97276905eac35b781b1d08fdc636a14be72..c1dad101f4be22f91f3a77bbcf215be86ade62a8 100644 (file)
@@ -216,6 +216,13 @@ file_set_timeout(struct main_file *fi, timestamp_t expires)
   timer_add(&fi->timer, expires);
 }
 
+void
+file_close_all(void)
+{
+  CLIST_FOR_EACH(struct main_file *, f, main_file_list)
+    close(f->fd);
+}
+
 void
 hook_add(struct main_hook *ho)
 {