am ec7d9dc7: Merge "Avoid zombies on androidscreencast"
* commit 'ec7d9dc713322bd41b1e348c0ea3b1304a13dba9': Avoid zombies on androidscreencast
This commit is contained in:
commit
d47255175e
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue