commit | f3af14e6df266f466e0bf7868d002cfe8104c128 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Sat Jun 07 00:16:32 2014 +0000 |
committer | Android Git Automerger <android-git-automerger@android.com> | Sat Jun 07 00:16:32 2014 +0000 |
tree | 30c66489e1e6d190a77cec60a4dc57d1b4958e28 | |
parent | f6d8dedd87eb8bbccbbdeb17a6d226f089449d92 [diff] | |
parent | ef47eb1948ba394866f53c41c459561fc372a3b5 [diff] |
am ef47eb19: am 30136150: Merge "adb: avoid leaking file descriptors" * commit 'ef47eb1948ba394866f53c41c459561fc372a3b5': adb: avoid leaking file descriptors
diff --git a/adb/framebuffer_service.c b/adb/framebuffer_service.c index fa7fd98..8cbe840 100644 --- a/adb/framebuffer_service.c +++ b/adb/framebuffer_service.c
@@ -61,7 +61,7 @@ int w, h, f; int fds[2]; - if (pipe(fds) < 0) goto pipefail; + if (pipe2(fds, O_CLOEXEC) < 0) goto pipefail; pid_t pid = fork(); if (pid < 0) goto done;