This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]