mirror of /home/gitosis/repositories/libowfat.git
quick fix to non-block issue
This commit is contained in:
parent
b136aaf930
commit
0eec9dd220
|
@ -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…
Reference in New Issue