Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30136150 authored by Nick Kralevich's avatar Nick Kralevich Committed by Gerrit Code Review
Browse files

Merge "adb: avoid leaking file descriptors"

parents 5db5b8aa 8fcb6313
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;