commit | da73cbaa9672af6f4cebc5c8d9b689f075cc5475 | [log] [tgz] |
---|---|---|
author | Maciej Żenczykowski <maze@google.com> | Tue Nov 12 12:16:24 2019 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Nov 12 12:16:24 2019 +0000 |
tree | 1840510a3839790b633d4aec779280c9d6e9c8eb | |
parent | d78687ed63c2eb5bc51d5316c234949377ff30a7 [diff] | |
parent | c1db3bcba363992a8357d34f383a98e5500c0a79 [diff] |
Merge "fix 'adb shell'"
diff --git a/adb/sysdeps.h b/adb/sysdeps.h index 979413a..0c5a6b4 100644 --- a/adb/sysdeps.h +++ b/adb/sysdeps.h
@@ -355,8 +355,8 @@ static __inline__ void close_on_exec(borrowed_fd fd) { int flags = get_fd_flags(fd); - if (flags >= 0 && (flags & O_CLOEXEC) == 0) { - fcntl(fd.get(), F_SETFD, flags | O_CLOEXEC); + if (flags >= 0 && (flags & FD_CLOEXEC) == 0) { + fcntl(fd.get(), F_SETFD, flags | FD_CLOEXEC); } }