diff options
author | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2016-04-27 20:34:14 +0800 |
---|---|---|
committer | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2016-04-27 20:34:14 +0800 |
commit | d5797c543982a0fbc8201ae21db5009e9447f75d (patch) | |
tree | df29214c4ac627753c2e7a695f9762eebd48bc78 | |
parent | d0fdc807253b59f2b8db0205e7083b26189b353f (diff) |
env_universal_common.cpp: pass correct flag to fcntl
Closes #2955.
-rw-r--r-- | src/env_universal_common.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/env_universal_common.cpp b/src/env_universal_common.cpp index 900a2d75..6dea9eeb 100644 --- a/src/env_universal_common.cpp +++ b/src/env_universal_common.cpp @@ -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 |