PR gdb/7912:
[deliverable/binutils-gdb.git] / gdb / tui / tui-io.c
index ef658f5a2337ff77fc7b1e193e16d2e8aa993d37..f255fdf64457758dab724b400cf690e8006b7e4b 100644 (file)
@@ -37,6 +37,7 @@
 #include <fcntl.h>
 #include <signal.h>
 #include <stdio.h>
+#include "filestuff.h"
 
 #include "gdb_curses.h"
 
@@ -616,7 +617,7 @@ tui_initialize_io (void)
   /* Temporary solution for readline writing to stdout: redirect
      readline output in a pipe, read that pipe and output the content
      in the curses command window.  */
-  if (pipe (tui_readline_pipe) != 0)
+  if (gdb_pipe_cloexec (tui_readline_pipe) != 0)
     {
       fprintf_unfiltered (gdb_stderr, "Cannot create pipe for readline");
       exit (1);
This page took 0.028576 seconds and 4 git commands to generate.