diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-23 22:57:29 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-23 22:57:29 +0000 |
commit | d51743afc80c377d89260a57121c6911564df1b0 (patch) | |
tree | 29b24584d293b386be21d12f286cd555caac9c5f /ext/socket | |
parent | 61e5fe06748de67e1d198a4d28d1e59e5c1dcedc (diff) | |
download | ruby-d51743afc80c377d89260a57121c6911564df1b0.tar.gz |
ext/socket/init.c (rsock_accept): handle ENOMEM
accept(2) documents ENOMEM as a possible error, handle it
consistent with all of our other FD-allocating wrappers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket')
-rw-r--r-- | ext/socket/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/socket/init.c b/ext/socket/init.c index 3fb436614e..d0711025a5 100644 --- a/ext/socket/init.c +++ b/ext/socket/init.c @@ -605,6 +605,7 @@ rsock_s_accept(VALUE klass, int fd, struct sockaddr *sockaddr, socklen_t *len) switch (errno) { case EMFILE: case ENFILE: + case ENOMEM: if (retry) break; rb_gc(); retry = 1; |