diff options
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 dc232002e..4cec757e5 100644 --- a/libc/stdio/stdio.cpp +++ b/libc/stdio/stdio.cpp @@ -291,7 +291,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); } |