Re: [patch gdbserver 7.6.1 only] Fix fd leak regression

Tom Tromey
2013-08-29T18:27:47Z

Tom> second, the in process agent can't use gdb_socket_cloexec

Pedro> But, why ?

filestuff.o isn't available there. I guess it could be?
I will give it a whirl.

>> - open ("/dev/null", O_RDONLY);
>> + gdb_open_cloexec ("/dev/null", O_RDONLY, 0);

Pedro> This is the child opening its stdin. Doesn't look
Pedro> correct to close it on the subsequent exec.

Hahaha, barf.

Tom