Merge "Typo fix in comment. O_CLOEXEC is e, not x." am: fe88d26aca

am: 82ed244032

Change-Id: I80c22c3e1967facc3f3ac74b6f92dc8dea463152
This commit is contained in:
Dan Albert 2019-03-26 17:05:18 -07:00 committed by android-build-merger
commit 169df88962

View file

@ -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);
}