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

Commit 9630ca7d authored by Colin Cross's avatar Colin Cross Committed by Android Git Automerger
Browse files

am d4725517: am ec7d9dc7: Merge "Avoid zombies on androidscreencast"

* commit 'd4725517':
  Avoid zombies on androidscreencast
parents 22bb8fc5 d4725517
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -19,6 +19,9 @@
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/wait.h>

#include "fdevent.h"
#include "adb.h"
@@ -169,6 +172,8 @@ void framebuffer_service(int fd, void *cookie)
    if(writex(fd, buf, fbinfo.size % sizeof(buf))) goto done;

done:
    TEMP_FAILURE_RETRY(waitpid(pid, NULL, 0));

    close(fds[0]);
    close(fds[1]);
    close(fd);