#include <stdio.h>
#include <signal.h>
-static struct io_plan start(struct io_conn *conn, void *unused)
-{
- return io_idle(conn);
-}
-
int main(void)
{
int status;
int fds[2];
ok1(pipe(fds) == 0);
- io_new_conn(fds[0], start, NULL, NULL);
+ io_new_conn(fds[0], io_wait(&status, io_close_cb, NULL));
io_loop();
exit(1);
}