Mark more file descriptors close-on-exec
authorTom Tromey <tom@tromey.com>
Tue, 18 Sep 2018 22:45:59 +0000 (16:45 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 23 Sep 2018 18:11:16 +0000 (12:11 -0600)
commit65773341ee5ad9e2882fcb1aed7c3096e6b4f190
tree29432c01b92dce80017c39d9a25e310c5d6ec10e
parent1db88d2272a776200db950c2af46e64e98ef056b
Mark more file descriptors close-on-exec

I noticed a couple of spots in gdb that were opening files but not
marking the file descriptors as close-on-exec.  This patch fixes
these.

There are still a few more of these, but they are in code that I can't
compile, so I'd prefer not to touch.

gdb/ChangeLog
2018-09-23  Tom Tromey  <tom@tromey.com>

* ctf.c (ctf_start): Use gdb_fopen_cloexec.
* common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
gdb/ChangeLog
gdb/common/scoped_mmap.c
gdb/ctf.c
This page took 0.044214 seconds and 4 git commands to generate.