am f3af14e6: am ef47eb19: am 30136150: Merge "adb: avoid leaking file descriptors"

* commit 'f3af14e6df266f466e0bf7868d002cfe8104c128':
  adb: avoid leaking file descriptors
This commit is contained in:
Nick Kralevich 2014-06-07 00:19:51 +00:00 committed by Android Git Automerger
commit 5c70f7e310
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ void framebuffer_service(int fd, void *cookie)
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;