mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 14:40:37 +08: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
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user