From 36d6b71a4bcf476f3acda6b249486844d76128ef Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 13 Oct 2013 01:38:24 +0000 Subject: use shorter socket constants for sockets This is to be compatible with Rubinius, but also works with MRI. --- lib/dtas/unix_client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/dtas/unix_client.rb') diff --git a/lib/dtas/unix_client.rb b/lib/dtas/unix_client.rb index fa8b11c..dfde59b 100644 --- a/lib/dtas/unix_client.rb +++ b/lib/dtas/unix_client.rb @@ -17,7 +17,7 @@ class DTAS::UNIXClient # :nodoc: end def initialize(path = self.class.default_path) - @to_io = Socket.new(:AF_UNIX, :SOCK_SEQPACKET, 0) + @to_io = Socket.new(:UNIX, :SEQPACKET, 0) @to_io.connect(Socket.pack_sockaddr_un(path)) end -- cgit v1.2.3-24-ge0c7