diff options
| author | Elliott Hughes <enh@google.com> | 2014-08-26 16:20:59 -0700 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2014-08-26 16:20:59 -0700 |
| commit | f73183f1a34df22b62a3d0bbf82e18d5797c9cde (patch) | |
| tree | 1bc3c9a47180aaeb2f734e835034a3f6b9ac9d00 /libc/bionic/malloc_debug_qemu.cpp | |
| parent | 7b87d441b0f2aa3ad5021ab6bd879a995a1bc2ce (diff) | |
| download | bionic-f73183f1a34df22b62a3d0bbf82e18d5797c9cde.zip bionic-f73183f1a34df22b62a3d0bbf82e18d5797c9cde.tar.gz bionic-f73183f1a34df22b62a3d0bbf82e18d5797c9cde.tar.bz2 | |
More cases where libc should use O_CLOEXEC.
Change-Id: Idfa111aeebc5deca2399dae919e8b72eb54c23c0
Diffstat (limited to 'libc/bionic/malloc_debug_qemu.cpp')
| -rw-r--r-- | libc/bionic/malloc_debug_qemu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/bionic/malloc_debug_qemu.cpp b/libc/bionic/malloc_debug_qemu.cpp index b3b604d..2f4949b 100644 --- a/libc/bionic/malloc_debug_qemu.cpp +++ b/libc/bionic/malloc_debug_qemu.cpp @@ -606,7 +606,7 @@ extern "C" bool malloc_debug_initialize(HashTable*, const MallocDebug* malloc_di * the memory mapped spaces into writes to an I/O port that emulator * "listens to" on the other end. Note that until we open and map that * device, logging to emulator's stdout will not be available. */ - int fd = open("/dev/qemu_trace", O_RDWR); + int fd = open("/dev/qemu_trace", O_CLOEXEC | O_RDWR); if (fd < 0) { error_log("Unable to open /dev/qemu_trace"); return false; |
