mirror of /home/gitosis/repositories/libowfat.git
make BSD sendfile actually work
This commit is contained in:
parent
796ac25ea5
commit
4253ad69dd
|
@ -57,9 +57,10 @@ int64 iob_send(int64 s,io_batch* b) {
|
|||
if (r==0)
|
||||
sent=b->bytesleft;
|
||||
else if (r==-1 && errno==EAGAIN) {
|
||||
if ((sent=sbytes)) sent=-1;
|
||||
sent=sbytes;
|
||||
goto eagain;
|
||||
if (!(sent=sbytes)) {
|
||||
sent=-1;
|
||||
goto eagain;
|
||||
}
|
||||
} else
|
||||
sent=-3;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue