Merge "adb: avoid leaking file descriptors"

This commit is contained in:
Nick Kralevich 2014-06-06 23:42:46 +00:00 committed by Gerrit Code Review
commit 3013615077

View file

@ -61,7 +61,7 @@ void framebuffer_service(int fd, void *cookie)
int w, h, f; int w, h, f;
int fds[2]; int fds[2];
if (pipe(fds) < 0) goto pipefail; if (pipe2(fds, O_CLOEXEC) < 0) goto pipefail;
pid_t pid = fork(); pid_t pid = fork();
if (pid < 0) goto done; if (pid < 0) goto done;