commit | 4c771e6ff6a7453f66eeb99f2ae43201ced25ab3 | [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 | 2cd530fca51d5d391e7ea9f5b6e6a4acc788bb8d | |
parent | 29754d935ffbb9e1fe0143c1db0164426808a89e [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>