RFC: close-on-exec internal file descriptors
Tom Tromey
tromey@redhat.com
Fri May 10 17:00:00 GMT 2013
>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:
Joel> I tested the patches, and they look good to me, except for the fact
Joel> that we were missing the #include of filestuff.h. Attached is patch
Joel> that builds and tests fine on x86_64-darwin and ia64-hpux...
Thanks Joel.
I'm checking this in with this ChangeLog:
2013-05-10 Joel Brobecker <brobecker@adacore.com>
Tom Tromey <tromey@redhat.com>
* common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
New functions.
* common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
Declare.
* darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
(darwin_ptrace_him): Use unmark_fd_no_cloexec.
* inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
(inf_ttrace_prepare): Use mark_fd_no_cloexec.
Tom
More information about the Gdb-patches
mailing list