mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
env_universal_common.cpp: pass correct flag to fcntl
Closes #2955.
(cherry picked from commit d5797c5439
)
This commit is contained in:
parent
bc35ca6366
commit
ac68c0c878
1 changed files with 1 additions and 1 deletions
|
@ -687,7 +687,7 @@ bool env_universal_t::open_temporary_file(const wcstring &directory, wcstring *o
|
||||||
result_fd = mkstemp(narrow_str);
|
result_fd = mkstemp(narrow_str);
|
||||||
if (result_fd != -1)
|
if (result_fd != -1)
|
||||||
{
|
{
|
||||||
fcntl(result_fd, F_SETFD, O_CLOEXEC);
|
fcntl(result_fd, F_SETFD, FD_CLOEXEC);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue