Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
Merge branch 'sg2342/fix_freebsd_sendfile/OTP-12720'
Browse files Browse the repository at this point in the history
* sg2342/fix_freebsd_sendfile/OTP-12720:
  Fix FreeBSD sendfile
  • Loading branch information
sverker committed May 8, 2015
2 parents 0a3dbbc + daaefc2 commit b6b4fd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erts/emulator/drivers/common/efile_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1938,6 +1938,8 @@ static void invoke_sendfile(void *data)
d->result_ok = 1;
if (d->c.sendfile.nbytes != 0)
d->c.sendfile.nbytes -= nbytes;
} else if (nbytes == 0 && d->c.sendfile.nbytes == 0) {
d->result_ok = 1;
} else
d->result_ok = 0;
} else {
Expand Down

0 comments on commit b6b4fd2

Please sign in to comment.