Closed carlhoerberg closed 1 month ago
suggestion: Add a simple spec to ensure this doesn't get lost somewhere. A simple check for close_on_exec?
should do:
it "socket closes on exec by default" do
socket = Socket.new(Socket::Family::INET, Socket::Type::STREAM, Socket::Protocol::TCP)
socket.close_on_exec?.should be_true
end
I disabled the spec for windows. This is an UNIX only consideration.
We still need to take a look at the Windows stuff. I've created #14636 to track that.
The comment 8 lines down suggests that this has been lost at some point.
Fixes #14630