commit | 6355d2f3ab5febbd25331a72671eea47ef5f43ac | [log] [tgz] |
---|---|---|
author | Yi Jin <jinyithu@google.com> | Wed Mar 14 15:18:02 2018 -0700 |
committer | Yi Jin <jinyithu@google.com> | Wed Mar 14 16:26:28 2018 -0700 |
tree | bf9535c065fe87adbb4d34c5d796d860608b00d7 | |
parent | 874b0091372a5a74e8a959c15dc93b4e82a2329d [diff] [blame] |
Wrap fd with unique_fd so it won't leak. Bug: 74021345 Test: manual and atest incidentd_test Change-Id: Ib1000bfe6917c3d5cae7b9edce5b67d50897e10d
diff --git a/cmds/incidentd/src/incidentd_util.h b/cmds/incidentd/src/incidentd_util.h index 3f7df91..228d776 100644 --- a/cmds/incidentd/src/incidentd_util.h +++ b/cmds/incidentd/src/incidentd_util.h
@@ -41,8 +41,8 @@ bool init(); bool close(); - int readFd() const; - int writeFd() const; + unique_fd& readFd(); + unique_fd& writeFd(); private: unique_fd mRead;