diff options
Diffstat (limited to 'gdb/ui-file.c')
-rw-r--r-- | gdb/ui-file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ui-file.c b/gdb/ui-file.c index bb904c9ad49..5671abdc538 100644 --- a/gdb/ui-file.c +++ b/gdb/ui-file.c @@ -24,6 +24,7 @@ #include "gdb_obstack.h" #include "gdb_string.h" #include "gdb_select.h" +#include "filestuff.h" #include <errno.h> @@ -664,7 +665,7 @@ stdio_fileopen (FILE *file) struct ui_file * gdb_fopen (char *name, char *mode) { - FILE *f = fopen (name, mode); + FILE *f = gdb_fopen_cloexec (name, mode); if (f == NULL) return NULL; |