commit | 8084a53897b424ee751599c36c587f8463759516 | [log] [tgz] |
---|---|---|
author | Greg Hackmann <ghackmann@google.com> | Mon Mar 17 13:08:31 2014 -0700 |
committer | Greg Hackmann <ghackmann@google.com> | Mon Mar 17 13:16:27 2014 -0700 |
tree | b5541d41ca23d2e987b30f499ed4608480a48d1d | |
parent | a0915abd2fb57113bc46e8d8fe5013ca4a9ef6e8 [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>