Message380358
I did some further digging, and this is indeed not possible on Oracle Solaris (that is, sendfile() cannot write bytes and fail during the same call). We considered this a bug and changed/fixed it several years ago.
Manual page doesn't mention that either:
https://docs.oracle.com/cd/E88353_01/html/E37843/sendfile-3c.html
I am not sure whether Illumos will want to change this as well (probably not since it is mentioned in the man page as expected behavior), but either way, the proposed change doesn't harm Oracle Solaris because 'if (offset != original_offset)' can never be true. |
|
Date |
User |
Action |
Args |
2020-11-04 20:34:06 | kulikjak | set | recipients:
+ kulikjak, jstasiak, wiedi |
2020-11-04 20:34:06 | kulikjak | set | messageid: <1604522046.45.0.606118547113.issue42237@roundup.psfhosted.org> |
2020-11-04 20:34:06 | kulikjak | link | issue42237 messages |
2020-11-04 20:34:06 | kulikjak | create | |
|