Skip to content

Commit fbcfeb8

Browse files
committed
Fix UNIXServer#accept_nonblock(exception: false)
1 parent 8bbb76b commit fbcfeb8

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

lib/truffle/socket/unix_server.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,15 @@ def listen(backlog)
4949
end
5050

5151
def accept
52-
Truffle::Socket.accept(self, UNIXSocket)[0]
52+
socket, _ = Truffle::Socket.accept(self, UNIXSocket)
53+
54+
socket
5355
end
5456

5557
def accept_nonblock(exception: true)
56-
Truffle::Socket.accept_nonblock(self, UNIXSocket, exception)[0]
58+
socket, _ = Truffle::Socket.accept_nonblock(self, UNIXSocket, exception)
59+
60+
socket
5761
end
5862

5963
def sysaccept

spec/tags/library/socket/unixserver/accept_nonblock_tags.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)