commit | 1d284004af5313d4494ed1e5eaad918c1814819c | [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 | d9381651ee52ca6a081458d8b98806eda5aa579e [diff] | |
parent | cc6d793310ad81d64a18d111ab33043791b92a52 [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); } }