summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-06-04 04:47:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-06-04 04:47:04 +0000
commit2b5990e921d3bf5afd4e2845bdcfbc5fd880a380 (patch)
tree53c020d5faa761038fb47ba67b56b19f4fb58abb /ext
parent8084d569c0238926e79be4a47e946ffe5a87e6bc (diff)
backport miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/socket/socket.c2
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);