commit | c14f0b4c782481369967d7b1bea47b58104b1ed1 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Fri Oct 19 02:52:52 2018 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Oct 19 02:52:52 2018 +0000 |
tree | 195114ad7f34274f8ce8b1b1f4e2d66c2c4997e4 | |
parent | e9182367a1a845ccceeb53d09520986473ef0739 [diff] | |
parent | 6788cabc608efd3c096965577d825785e02fe406 [diff] |
Merge "Add O_CLOEXEC"
diff --git a/init/property_service.cpp b/init/property_service.cpp index 5c8b92a..6aed0a3 100644 --- a/init/property_service.cpp +++ b/init/property_service.cpp
@@ -746,7 +746,7 @@ return; } - int fd = open(rec->blk_device, O_RDONLY); + int fd = open(rec->blk_device, O_RDONLY | O_CLOEXEC); if (fd == -1) { PLOG(ERROR) << "error opening block device " << rec->blk_device; return;