]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/io.h
io: closing one side of a duplex connection closes both.
[ccan] / ccan / io / io.h
index 6248fec02c2e5c5ae3d42e65d80eb8483af1d5aa..0318aef300873fa71104e0a2b630ad28e93e7065 100644 (file)
@@ -394,7 +394,7 @@ bool io_timeout_(struct io_conn *conn, struct timespec ts,
  * to have two connections for the same fd, and use one for read
  * operations and one for write.
  *
- * You must io_close() both of them to close the fd.
+ * Returning io_close() on one will close both fds!
  *
  * Example:
  *     static void setup_read_write(int fd,