]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/test/run-10-many.c
Revert "io: closing one side of a duplex connection closes both."
[ccan] / ccan / io / test / run-10-many.c
index b13e1b4345a34997450b5d3ec62b064286fa0240..da59a3cc30ef0f6ebb734a24d755515f636b4971 100644 (file)
@@ -22,7 +22,7 @@ static struct io_plan poke_writer(struct io_conn *conn, struct buffer *buf)
        assert(conn == buf->reader);
 
        if (buf->iters == NUM_ITERS)
-               return io_close(conn, NULL);
+               return io_close();
 
        /* You write. */
        io_wake(buf->writer,
@@ -40,7 +40,7 @@ static struct io_plan poke_reader(struct io_conn *conn, struct buffer *buf)
                io_read(&buf->buf, sizeof(buf->buf), poke_writer, buf));
 
        if (++buf->iters == NUM_ITERS)
-               return io_close(conn, NULL);
+               return io_close();
 
        /* I'll wait until you tell me to write. */
        return io_idle();