- /* Save old flags, set nonblock if not already. */
- arg->u1.s = fcntl(fd, F_GETFL);
- fcntl(fd, F_SETFL, arg->u1.s | O_NONBLOCK);
+ /* We don't actually need the arg, but we need it polling. */
+ io_plan_arg(conn, IO_OUT);
+
+ /* Note that io_new_conn() will make fd O_NONBLOCK */