001117
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0d11c322d1
commit
46608d361a
@ -769,6 +769,7 @@ ruby_connect(fd, sockaddr, len, socks)
|
||||
}
|
||||
}
|
||||
#ifdef HAVE_FCNTL
|
||||
mode &= ~NONBLOCKING; /* needed? */
|
||||
fcntl(fd, F_SETFL, mode);
|
||||
#endif
|
||||
return status;
|
||||
|
14
io.c
14
io.c
@ -123,20 +123,6 @@ extern int ReadDataPending();
|
||||
}\
|
||||
} while(0)
|
||||
|
||||
#ifndef EWOULDBLOCK
|
||||
#define EWOULDBLOCK EAGAIN
|
||||
#endif
|
||||
|
||||
#ifdef O_NDELAY
|
||||
# define NONBLOCKING O_NDELAY
|
||||
#else
|
||||
#ifdef O_NBIO
|
||||
# define NONBLOCKING O_NBIO
|
||||
#else
|
||||
# define NONBLOCKING O_NONBLOCK
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void
|
||||
rb_eof_error()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user