summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-03-26 06:18:51 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-03-26 06:18:51 +0000
commitf60b87038d19d244446a5d0908ca4c7111857640 (patch)
tree7fe61bfc98a1864e7e68ac8e5b6e9f7bd7195afc /ext
parent2244b5fabf15f25166bc6a433f4d3c765856a777 (diff)
* parse.y (primary): while/until statement modifiers to "begin"
statement now work as "do .. while" even when begin statement has "rescue" or "ensure" [new]. * parse.y (bodystmt): rescue/ensure is allowed at every bodies, i.e. method bodies, begin bodies, class bodies[new], and module bodies[new]. * ext/socket/socket.c (sock_addrinfo): should specify ai_socktype for getaddrinfo hints. * eval.c (rb_f_abort): embed aborting message into exception object [new]. * eval.c (terminate_process): utility function for exit and abort. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/socket/socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index 54d181958c..601455e878 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -591,6 +591,7 @@ sock_addrinfo(host, port, flags)
MEMZERO(&hints, struct addrinfo, 1);
hints.ai_family = PF_UNSPEC;
+ hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = flags;
error = getaddrinfo(hostp, portp, &hints, &res);
if (error) {