Make symbolize.cc thread safe even on shared fds
ReadFromOffset in symbolize.cc used to call lseek() + read() to read data from fd. However, the fd may be reused for multiple symbolize requests from multiple threads, and causes a race around the fd read offset. This updates it to use pread() to resolve the race.
Showing
Please
register
or
sign in
to comment