]> Git Repo - binutils.git/blobdiff - gdb/remote-fileio.c
PR gdb/7912:
[binutils.git] / gdb / remote-fileio.c
index 2f9d64452c7539bca43b7ff3a29ee80f8a7b0d0f..cc39bdf14add4318d1a7ff29cf347b3c2e80964e 100644 (file)
@@ -31,6 +31,7 @@
 #include "event-loop.h"
 #include "target.h"
 #include "filenames.h"
+#include "filestuff.h"
 
 #include <fcntl.h>
 #include <sys/time.h>
@@ -639,7 +640,7 @@ remote_fileio_func_open (char *buf)
     }
 
   remote_fio_no_longjmp = 1;
-  fd = open (pathname, flags, mode);
+  fd = gdb_open_cloexec (pathname, flags, mode);
   if (fd < 0)
     {
       remote_fileio_return_errno (-1);
This page took 0.02722 seconds and 4 git commands to generate.