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


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


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