This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: close-on-exec internal file descriptors
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Yao Qi <yao at codesourcery dot com>, gdb-patches at sourceware dot org
- Date: Wed, 24 Apr 2013 17:28:23 +0200
- Subject: Re: RFC: close-on-exec internal file descriptors
- References: <874njjs1aa dot fsf at fleche dot redhat dot com> <5175DF3E dot 10800 at codesourcery dot com> <871ua1qmc3 dot fsf at fleche dot redhat dot com>
On Tue, 23 Apr 2013 17:49:00 +0200, Tom Tromey wrote:
> 2013-04-23 Tom Tromey <tromey@redhat.com>
>
> * common/filestuff.c: Check USE_WIN32API before including
> sys/socket.h.
> (HAVE_F_GETFD): New define.
> (mark_cloexec): Check HAVE_F_GETFD.
> (gdb_open_cloexec): Change 'mode' to unsigned long.
> (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
> (gdb_pipe_cloexec): Check HAVE_PIPE.
> * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
> long.
Just confirming it fixed the MinGW problem for me for both 32 and 64 bits.
Thanks,
Jan