]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/io.h
io: handle errors on listening file descriptors.
[ccan] / ccan / io / io.h
index 8efc0024c9d230a580bd7838de4d7ad30503e381..54300ce4575ba684389c93c478afa16d8b4d1e6b 100644 (file)
@@ -109,7 +109,8 @@ void io_set_finish_(struct io_conn *conn,
  * @arg: the argument to @init.
  *
  * When @fd becomes readable, we accept(), create a new connection,
- * (tal'ocated off @ctx) and pass that to init().
+ * (tal'ocated off @ctx) and pass that to init().  Note that if there is
+ * an error on this file descriptor, it will be freed.
  *
  * Returns NULL on error (and sets errno).
  *