diff options
author | Dan Albert <danalbert@google.com> | 2019-03-26 13:01:22 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2019-03-26 13:01:22 -0700 |
commit | ba1151c761534392faef9b1148aa554c671e0d91 (patch) | |
tree | 8c2fea0108e33e699099fe2a3a4b17d86e49e69b /libc/stdio/stdio.cpp | |
parent | e65558a0a4ad1f4aee5d63d0661b02f910e0cbd8 (diff) |
Typo fix in comment. O_CLOEXEC is e, not x.
Test: None
Bug: None
Change-Id: I061fe1d3cac6307d878155f1fabdba70da8e9fd5
Diffstat (limited to 'libc/stdio/stdio.cpp')
-rw-r--r-- | libc/stdio/stdio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdio/stdio.cpp b/libc/stdio/stdio.cpp index d7b69dcb5..72069baae 100644 --- a/libc/stdio/stdio.cpp +++ b/libc/stdio/stdio.cpp @@ -290,7 +290,7 @@ FILE* fdopen(int fd, const char* mode) { if (fcntl(fd, F_SETFL, fd_flags | O_APPEND) == -1) return nullptr; } - // Make sure O_CLOEXEC is set on the underlying fd if our mode has 'x'. + // Make sure O_CLOEXEC is set on the underlying fd if our mode has 'e'. if ((mode_flags & O_CLOEXEC) && !((tmp = fcntl(fd, F_GETFD)) & FD_CLOEXEC)) { fcntl(fd, F_SETFD, tmp | FD_CLOEXEC); } |