RFC: close-on-exec internal file descriptors
Jan Kratochvil
jan.kratochvil@redhat.com
Wed Apr 24 20:35:00 GMT 2013
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
More information about the Gdb-patches
mailing list