Skip to content
Permalink
Browse files
Fix LibC.accept segfault
  • Loading branch information
RX14 authored and matiasgarciaisaia committed Aug 4, 2017
1 parent 890ab45 commit e85746f
Showing 1 changed file with 1 addition and 1 deletion.
@@ -216,7 +216,7 @@ class Socket < IO::FileDescriptor

protected def accept_impl
loop do
client_fd = LibC.accept(fd, out client_addr, out client_addrlen)
client_fd = LibC.accept(fd, nil, nil)
if client_fd == -1
if closed?
return

0 comments on commit e85746f

Please sign in to comment.