Skip to content

Commit

Permalink
Merge pull request #543 from TKollegger/sendfile-fix
Browse files Browse the repository at this point in the history
Fix handling of sendfile offset argument
  • Loading branch information
abh3 committed Jul 13, 2017
2 parents 830a5d5 + 1c2a104 commit e9d4eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Xrd/XrdLink.cc
Expand Up @@ -889,7 +889,7 @@ do{retc = sendfilev(FD, vecSFP, sfN, &xframt);
else {myOffset = sfP->offset; bytesleft = sfP->sendsz;
while(bytesleft
&& (retc=sendfile(FD,sfP->fdnum,&myOffset,bytesleft)) > 0)
{myOffset += retc; bytesleft -= retc; xIntr++;}
{bytesleft -= retc; xIntr++;}
}
if (retc < 0 && errno == EINTR) continue;
if (retc <= 0) break;
Expand Down

0 comments on commit e9d4eb5

Please sign in to comment.