[Bug ada/6717] Race condition in GNAT.Sockets.Create_Selector

cvs-commit at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jun 16 08:42:00 GMT 2005


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-06-16 08:42 -------
Subject: Bug 6717

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	charlet@gcc.gnu.org	2005-06-16 08:41:50

Modified files:
	gcc/ada        : g-socket.ads g-socket.adb 

Log message:
	2005-06-14  Thomas Quinot  <quinot@adacore.com>
	
	PR ada/6717
	
	* g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
	broadcast address.
	(Create_Selector): Bind listening socket used to create the signalling
	socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
	Set listen backlog to 1 to ensure that we detect socket theft by a
	failure of our own connect(2) call.
	(Check_Selector): Improve documentation of the selector mechanism.
	(Broadcast_Inet_Addr): New constant.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/g-socket.ads.diff?cvsroot=gcc&r1=1.12&r2=1.13
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/g-socket.adb.diff?cvsroot=gcc&r1=1.13&r2=1.14



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6717



More information about the Gcc-bugs mailing list