make the accepted connections non-blocking, too

master
leitner 22 years ago
parent f1c7c0462b
commit c080055248

@ -48,6 +48,7 @@ main() {
buffer_puts(buffer_2," (fd "); buffer_puts(buffer_2," (fd ");
buffer_putulong(buffer_2,n); buffer_putulong(buffer_2,n);
buffer_puts(buffer_2,")"); buffer_puts(buffer_2,")");
io_nonblock(n);
if (io_fd(n)) { if (io_fd(n)) {
io_wantread(n); io_wantread(n);
} else { } else {

Loading…
Cancel
Save