This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: close-on-exec internal file descriptors
- From: Tom Tromey <tromey at redhat dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 22 Apr 2013 10:33:27 -0600
- Subject: Re: RFC: close-on-exec internal file descriptors
- References: <874njjs1aa dot fsf at fleche dot redhat dot com> <m2vcbzui0o dot fsf at igel dot home> <87fw32p00e dot fsf at fleche dot redhat dot com> <874niy6y35 dot fsf at fleche dot redhat dot com>
>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:
Tom> I'll give it a try. If it works I suppose we'll need a new plan.
Tom> One idea would be to see which file descriptors are open when gdb
Tom> starts, and then preserve just those.
Tom> Here's the implementation of this idea.
Tom> Built and regtested on x86-64 Fedora 16.
Tom> Tom
Tom> 2013-01-03 Tom Tromey <tromey@redhat.com>
Tom> PR gdb/7912:
Tom> * Makefile.in (SFILES): Add filestuff.c
Tom> (COMMON_OBS): Add filestuff.o.
Tom> (filestuff.o): New target.
[...]
I'm checking this in now.
I rebased it and then regression tested it on x86-64 Fedora 18.
Tom