quick fix to non-block issue
This commit is contained in:
parent
eaa4dea67b
commit
b01e72af69
@ -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…
x
Reference in New Issue
Block a user