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: Wed, 19 Dec 2012 07:52:33 -0700
- Subject: Re: RFC: close-on-exec internal file descriptors
- References: <874njjs1aa.fsf@fleche.redhat.com> <m2vcbzui0o.fsf@igel.home>
>>>>> "Andreas" == Andreas Schwab <schwab@linux-m68k.org> writes:
Andreas> I don't think you can use closefrom here. The debuggee might
Andreas> depend on inherited descriptors, and gdb should be fully
Andreas> transparent here.
I had never heard of anybody doing this.
I'll give it a try. If it works I suppose we'll need a new plan.
One idea would be to see which file descriptors are open when gdb
starts, and then preserve just those.
Tom