summaryrefslogtreecommitdiff
path: root/base/errors_unix.cpp
diff options
context:
space:
mode:
authorGreg Hackmann <ghackmann@google.com>2014-03-17 13:08:31 -0700
committerGreg Hackmann <ghackmann@google.com>2014-03-17 13:16:27 -0700
commit8084a53897b424ee751599c36c587f8463759516 (patch)
treeb5541d41ca23d2e987b30f499ed4608480a48d1d /base/errors_unix.cpp
parenta0915abd2fb57113bc46e8d8fe5013ca4a9ef6e8 (diff)
liblog: improve errno handling on read failure
1. socket() failures should skip close(), since sock is not an open fd 2. on other I/O related failures, preserve errno around the close() call 3. set errno to a meaningful value on check_log_success() failure Change-Id: I0fb9e726ae5fee2f7b84344aa925e5159d57c360 Signed-off-by: Greg Hackmann <ghackmann@google.com>
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions