diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/socket/socket.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c index df14c0c443..19a3f2aa17 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -888,6 +888,8 @@ open_inet_internal(arg) rb_sys_fail(syscall); } + arg->fd = -1; + if (type == INET_SERVER) listen(fd, 5); |