* io_send_fd - output plan to send a file descriptor
* @conn: the connection that plan is for.
* @fd: the file descriptor to pass.
* io_send_fd - output plan to send a file descriptor
* @conn: the connection that plan is for.
* @fd: the file descriptor to pass.
- * // Write fd, then close.
- * return io_send_fd(conn, fd, io_close_cb, NULL);
+ * // Write fd, then close conn.
+ * return io_send_fd(conn, fd, false, io_close_cb, NULL);
-#define io_send_fd(conn, fd, next, arg) \
- io_send_fd_((conn), (fd), \
+#define io_send_fd(conn, fd, fdclose, next, arg) \
+ io_send_fd_((conn), (fd), (fdclose), \
typesafe_cb_preargs(struct io_plan *, void *, \
(next), (arg), struct io_conn *), \
(arg))
struct io_plan *io_send_fd_(struct io_conn *conn,
typesafe_cb_preargs(struct io_plan *, void *, \
(next), (arg), struct io_conn *), \
(arg))
struct io_plan *io_send_fd_(struct io_conn *conn,