env_universal_common.cpp: pass correct flag to fcntl

Closes #2955.

(cherry picked from commit d5797c5439)
This commit is contained in:
David Adam 2016-04-27 20:34:14 +08:00
parent bc35ca6366
commit ac68c0c878

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