[Ada] Fix oversight in GNAT.Sockets.Thin

Eric Botcazou botcazou@adacore.com
Wed Oct 7 21:45:21 GMT 2026


As reported in the PR, both C_Accept and C_Socket call Disable_SIGPIPE 
unconditionally, in other words even though the descriptor is invalid.

Tested on x86-64/Linux, applied on the mainline and 16 branch.


2026-10-07  Hodong Kim  <hodong@nimfsoft.com>

	PR ada/127759
	* libgnat/g-socthi.adb (C_Accept): Do not call Disable_SIGPIPE
	on failure.
	(C_Socket): Likewise.

-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr127759.diff
Type: text/x-patch
Size: 773 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20261007/92707c47/attachment.bin>


More information about the Gcc-patches mailing list