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: RFA: close-on-exec internal file descriptors


>>>>> "Daniel" == Daniel Jacobowitz <drow@false.org> writes:

Daniel> If you build with headers that include O_CLOEXEC support, but the
Daniel> running kernel is too old, will this fail to open entirely?  Or are
Daniel> unknown open flags ignored?

I don't know, but I will find out.

Daniel> Also, WDYT about separating the goal from the mechanism?  With this
Daniel> patch, every bit of gdb knows "we close file descriptors on exec";
Daniel> if it was gdb_open, it would just be "gdb-specific version of open".

Sounds good to me, I'll do this.

Tom


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