am 30136150: Merge "adb: avoid leaking file descriptors"
* commit '3013615077bbf1ccedaef59181f5e96062ad479a': adb: avoid leaking file descriptors
This commit is contained in:
commit
ef47eb1948
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue