]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/io.h
io: call finish function after fd is actually closed.
[ccan] / ccan / io / io.h
index bcdb11fdd0e0c1f1e9a08aac55a13e0afe888d92..ecbeb0b093bf6f0c43054b9a67e1233cff41bf66 100644 (file)
@@ -39,7 +39,8 @@ struct io_conn *io_new_conn_(int fd, struct io_plan plan);
  *
  * @finish will be called when an I/O operation fails, or you call
  * io_close() on the connection.  errno will be set to the value
- * after the failed I/O, or at the call to io_close().
+ * after the failed I/O, or at the call to io_close().  The fd
+ * will be closed (unless a duplex) before @finish is called.
  *
  * Example:
  * static void finish(struct io_conn *conn, void *unused)