Browse Source

quick fix to non-block issue

master
Felix von Leitner 18 years ago
parent
commit
0eec9dd220
  1. 1
      io/io_nonblock.c

1
io/io_nonblock.c

@ -5,7 +5,6 @@
void io_nonblock(int64 d) {
io_entry* e=array_get(&io_fds,sizeof(io_entry),d);
if (e && e->nonblock) return;
fcntl(d,F_SETFL,fcntl(d,F_GETFL,0) | O_NDELAY);
if (e) e->nonblock=1;
}

Loading…
Cancel
Save