1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

UNIX domain socket name length has a certain limit

This commit is contained in:
Nobuyoshi Nakada 2019-05-31 16:14:27 +09:00
parent b1aecef873
commit b632566d33
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -55,7 +55,12 @@ module FileSpecs
require 'socket'
name = tmp("ftype_socket.socket")
rm_r name
socket = UNIXServer.new name
begin
socket = UNIXServer.new name
rescue ArgumentError => error
error.message.should =~ /too long/
return
end
begin
yield name
ensure