diff options
author | Zim <zezeozue@google.com> | 2021-04-12 13:06:20 +0100 |
---|---|---|
committer | Zimuzo Ezeozue <zezeozue@google.com> | 2021-04-12 12:52:47 +0000 |
commit | 6502f59a98e6f46cfa40e6f5b76b8098b9083da7 (patch) | |
tree | 872a33eba25e1bbb2dbd134780563936145e6ff0 /libs/hwui/renderthread/DrawFrameTask.cpp | |
parent | fdeb85d4ae12a88951dcc280635c58561604aeba (diff) |
Fix FileUtils#copy to fallback on userspace copy if sendfile fails
As per the manpage, sendfile(2) might fail for the following reasons:
1. input fd doesn't support mmap
2. output was opened with O_APPEND
If sendfile(2) fails with EINVAL or ENOSYS, we fallback to userspace
copy
Fixed failing FileUtilsTest#convertToModernFd test since
I7d6ecf4549e8ed5134d20977c2089240be804827 that stoped matching valid
files to convert to modernfd with regex
Test: atest FileUtilsTest
Bug: 184236915
Change-Id: I0955fe2a7dfb40ac1f78bde4a325eb624a34f28b
Diffstat (limited to 'libs/hwui/renderthread/DrawFrameTask.cpp')
0 files changed, 0 insertions, 0 deletions