This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] save/restore environ in libiberty pex_unix_exec_child
- From: DJ Delorie <dj at redhat dot com>
- To: dje at google dot com (Doug Evans)
- Cc: gcc-patches at gcc dot gnu dot org, gdb-patches at sourceware dot org
- Date: Mon, 7 Dec 2009 15:09:48 -0500
- Subject: Re: [RFA] save/restore environ in libiberty pex_unix_exec_child
- References: <20091207172641.398198456F@ruffy.mtv.corp.google.com>
If the child assignment truly clobbers the parent, won't the parent's
assignment clobber the child?
If it's portable enough, using exevpe/execve instead of execvp/execv
would be preferred.