diff options
-rw-r--r-- | pseudo_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pseudo_util.c b/pseudo_util.c index 64636b7..b58036f 100644 --- a/pseudo_util.c +++ b/pseudo_util.c @@ -1611,7 +1611,7 @@ pseudo_logfile(char *filename, char *defname, int prefer_fd) { } free(filename); } - fd = open(pseudo_path, O_WRONLY | O_APPEND | O_CREAT, 0644); + fd = open(pseudo_path, O_WRONLY | O_APPEND | O_CREAT | O_CLOEXEC, 0644); if (fd == -1) { pseudo_diag("help: can't open log file %s: %s\n", pseudo_path, strerror(errno)); } else { |