commit | ad9aaae046f4093f55c45e62cdc465857c2f2a58 | [log] [tgz] |
---|---|---|
author | Raman Tenneti <rtenneti@google.com> | Tue Nov 12 18:54:27 2019 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Nov 12 18:54:27 2019 +0000 |
tree | c4c6d7bbaab5425d66f38c65d6d5ea65794a8cca | |
parent | da73cbaa9672af6f4cebc5c8d9b689f075cc5475 [diff] | |
parent | a7edb68cd44bf6a73c7a8c607acb47b85178d046 [diff] |
Merge "Revert "fix 'adb shell'""
diff --git a/adb/sysdeps.h b/adb/sysdeps.h index 0c5a6b4..979413a 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 & FD_CLOEXEC) == 0) { - fcntl(fd.get(), F_SETFD, flags | FD_CLOEXEC); + if (flags >= 0 && (flags & O_CLOEXEC) == 0) { + fcntl(fd.get(), F_SETFD, flags | O_CLOEXEC); } }