env_universal_common.cpp: pass correct flag to fcntl

Closes #2955.
This commit is contained in:
David Adam
2016-04-27 20:34:14 +08:00
parent d0fdc80725
commit d5797c5439

View File

@@ -687,7 +687,7 @@ bool env_universal_t::open_temporary_file(const wcstring &directory, wcstring *o
result_fd = mkstemp(narrow_str);
if (result_fd != -1)
{
fcntl(result_fd, F_SETFD, O_CLOEXEC);
fcntl(result_fd, F_SETFD, FD_CLOEXEC);
}
#endif