commit | 62833808b085c423c5efcb580c58c50c7ab0b42b | [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 | 18a936b3ad4c1ea2bce3d424812c31f5ba750a0b [diff] | |
parent | 2991949001794972e2a8c9ee74e6cd755a28f9f9 [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;