quick fix to non-block issue

This commit is contained in:
leitner 2003-10-19 10:38:39 +00:00
parent eaa4dea67b
commit b01e72af69

View File

@ -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;
}