lib/socket/unix_socket.rb in rubysl-socket-2.1.2 vs lib/socket/unix_socket.rb in rubysl-socket-2.1.3

- old
+ new

@@ -21,9 +21,10 @@ fd = RubySL::Socket::Foreign.socket(Socket::AF_UNIX, Socket::SOCK_STREAM, 0) Errno.handle('socket(2)') if fd < 0 IO.setup(self, fd, 'r+', true) + binmode sockaddr = Socket.sockaddr_un(path) status = RubySL::Socket::Foreign.connect(descriptor, sockaddr) Errno.handle('connect(2)') if status < 0