aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-11-25 11:14:10 +0100
committerLukas Larsson <[email protected]>2011-12-01 14:10:03 +0100
commiteccba49e87ad32248a678d90cfdf355ffd97015d (patch)
treeea2fc16ac11769266c4faa1e90bf4fe76c165560 /erts/emulator
parent1087d64af63d1fd5044d56e864557365ed40aab3 (diff)
downloadotp-eccba49e87ad32248a678d90cfdf355ffd97015d.tar.gz
otp-eccba49e87ad32248a678d90cfdf355ffd97015d.tar.bz2
otp-eccba49e87ad32248a678d90cfdf355ffd97015d.zip
Fix offset calculation for darwin
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/drivers/unix/unix_efile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/drivers/unix/unix_efile.c b/erts/emulator/drivers/unix/unix_efile.c
index 3a966757d9..61df572a91 100644
--- a/erts/emulator/drivers/unix/unix_efile.c
+++ b/erts/emulator/drivers/unix/unix_efile.c
@@ -1494,6 +1494,7 @@ efile_sendfile(Efile_error* errInfo, int in_fd, int out_fd,
#elif defined(DARWIN)
off_t len = *nbytes;
int retval = sendfile(in_fd, out_fd, *offset, &len, NULL, 0);
+ *offset += len;
*nbytes = len;
return check_error(retval, errInfo);
#elif defined(__FreeBSD__) || defined(__DragonFly__)